tcpdump mailing list archives
Re: pcap segment violation
From: "Daniel H. Bahr" <dhbahr () gmail com>
Date: Thu, 13 Feb 2014 13:23:01 -0500
Guy, my previous reply was sent before I saw your last message. There IS a chance more than one instance of the Object owning the native methods would be created IF there would be need to sniff at several network interfaces simultaneously; in which case there would be a single instance of the class for each network interface to be sniffed. Could this raise the issues you mention above? 2014-02-13 13:11 GMT-05:00, Daniel H. Bahr <dhbahr () gmail com>:
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:
- pcap segment violation Daniel H. Bahr (Feb 12)
- Re: pcap segment violation Guy Harris (Feb 12)
- Re: pcap segment violation Guy Harris (Feb 12)
- Message not available
- Message not available
- Re: pcap segment violation Daniel H. Bahr (Feb 13)
- Re: pcap segment violation Daniel H. Bahr (Feb 13)
- Re: pcap segment violation Guy Harris (Feb 13)
- Re: pcap segment violation Guy Harris (Feb 12)
- Re: pcap segment violation Guy Harris (Feb 12)
- Re: pcap segment violation Daniel H. Bahr (Feb 13)
- Re: pcap segment violation Daniel H. Bahr (Feb 13)
- Re: pcap segment violation Daniel H. Bahr (Feb 13)
- Re: pcap segment violation Guy Harris (Feb 13)
- Re: pcap segment violation Michael Richardson (Feb 13)
- Re: pcap segment violation Daniel H. Bahr (Feb 13)
- Re: pcap segment violation Guy Harris (Feb 13)
- Re: pcap segment violation Daniel H. Bahr (Feb 14)