i'm develop android app for sniffing packets from device. I'm using pcap4j library, but when call Pcaps.getDevByAddress(), launches the exception. Can you help me?
This is snipped code:
InetAddress destAddr = parsedPacket;
PcapNetworkInterface nif =Pcaps.getDevByAddress(destAddr);
Thanks
I guess you should add JNA as aar:
ref: https://github.com/java-native-access/jna/blob/master/www/FrequentlyAskedQuestions.md#jna-on-android