Other

openLive packet capture and proccessing

Hey,

I am fairly new to jnetpcap, I have familiarized myself with most of the packages and methods. What I am trying to do is leave an openLive method call running indefinitely, and at the same time, be able to get packets and start processing them and doing whatever i want with them. But it seems like openlive has to finish before I can do anything with the pcap. Is there any work arounds or methods I may not know about? I was considering making the openlive call its own thread, but im still not sure if I would be able to use the contents of it or not.

One idea I had/I think I read on one of the forums was to loop forever and inside there keep capturing for a second and then process using those pcaps. If i were to do that though would I miss some data/packets

psuedocode
while(true):
openlive(1 second)
run threaded process

Thanks a lot!!!

Using jnetpcap as a firewall

Packets not sending?

Hey guys, I am trying to send a simple UDP packet. Here is a link to my question, I didnt want to type it all again: http://stackoverflow.com/questions/16259058/jnetpcap-not-sending-udp-packet

android jnetpcap pcap.getAlldevs() gives no result

I have compiled jnetpcap1.3.0 jni libraries with great difficulty for android using Serg's code as starting point.. After hours of work, when I finally call the function pcap.getAllDevs(), it returns nothing. i.e. the Devices List still remains empty.

It returns no Link error with jni libraries.. I am completely lost .. If anyone have had a similar issue please help

Syndicate content