tcpdump mailing list archives

Re: pcap segment violation


From: "Daniel H. Bahr" <dhbahr () gmail com>
Date: Thu, 13 Feb 2014 13:11:52 -0500

I see what you mean, but the native startSniffing method is invoked
from a nested inner Thread. That is:

Java Main Thread {
   do stuff...
   Nested Outer Thread {
      do more stuff...
      Nested Inner Thread {
         startSniffing here...
      }
   }
}

2014-02-13 12:29 GMT-05:00, Michael Richardson <mcr () sandelman ca>:

The other thought I have is that java is heavily threaded, while libpcap is
not thread safe.   pcap_loop() is going to block.
I see that your jni variable is a global... I wonder about that.

--
]               Never tell me the odds!                 | ipv6 mesh networks
[
]   Michael Richardson, Sandelman Software Works        | network architect
[
]     mcr () sandelman ca  http://www.sandelman.ca/        |   ruby on rails
[


_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: