Re: [tcpdump-workers] start pcap in two thread

2009-02-06 Thread Gianluca Varenni
- Original Message - From: "Guy Harris" To: Sent: Friday, February 06, 2009 11:06 AM Subject: Re: [tcpdump-workers] start pcap in two thread On Feb 6, 2009, at 7:24 AM, David Andrey wrote: Can 2 threads (in the same process) start each one a sniffing session on the same interfa

Re: [tcpdump-workers] Where to get tcpslice?

2009-02-06 Thread Julian Mehnle
Michael Richardson wrote: > > "Julian" == Julian Mehnle writes: > Julian> http://www.tcpdump.org/related.html says there is an updated > Julian> tcpslice "in the tcpdump CVS server, as the project > Julian> tcpslice", and I managed to check out the code from there a > Julian> few months ago.

Re: [tcpdump-workers] start pcap in two thread

2009-02-06 Thread Guy Harris
On Feb 6, 2009, at 7:24 AM, David Andrey wrote: Can 2 threads (in the same process) start each one a sniffing session on the same interface, but with different filter. Is it safe and reliable ? It should work *IF* each thread opens a separate pcap_t for the interface and sets its own filte

Re: [tcpdump-workers] Where to get tcpslice?

2009-02-06 Thread Michael Richardson
> "Julian" == Julian Mehnle writes: Julian> http://www.tcpdump.org/related.html says there is an updated Julian> tcpslice "in the tcpdump CVS server, as the project Julian> tcpslice", and I managed to check out the code from there a Julian> few months ago. However, now the li

[tcpdump-workers] Where to get tcpslice?

2009-02-06 Thread Julian Mehnle
Hi all, http://www.tcpdump.org/related.html says there is an updated tcpslice "in the tcpdump CVS server, as the project tcpslice", and I managed to check out the code from there a few months ago. However, now the libpcap and tcpdump code seems to have been moved to git repositories. What abo

[tcpdump-workers] start pcap in two thread

2009-02-06 Thread David Andrey
Hi all, Can 2 threads (in the same process) start each one a sniffing session on the same interface, but with different filter. Is it safe and reliable ? I'm using Linux 2.6.27 and made some tests. It seems that one thread catch all the frames ?! Is it possible the compile libpcap for this u

Re: [tcpdump-workers] pcap-libdlpi.c doesn't compile in version 1.0.0

2009-02-06 Thread Sebastien Roy
Any input on the OpenSolaris issues I pointed out a few weeks back? Again, I have a fix that i can provide, but as I haven't contributed code to libpcap before, a quick primmer on what your process is would help me out. Thanks, -Seb On Fri, 2009-01-23 at 13:47 -0500, Sebastien Roy wrote: > Hi Fol

Re: [tcpdump-workers] a problem with some code

2009-02-06 Thread Tyler Littlefield
Hello, I've updated my code to do IP_HL, and am still getting around 7k in ports. I also fixed my size, so I'm getting an overall size of 34 or so. Ideas would be welcomed. //code: #include #include #include #include #include #include #include #include #include #include #include #includ

[tcpdump-workers] Getting packet statistics

2009-02-06 Thread Ambika Tripathy
Hi Experts, I new to the libpcap application. For my application I want to implement one counter for packet statistics for one capture job. But when I search the codes I found in pcap-linux.c pcap_stats_linux() only the filtered packets are displyed by the pcap_stats(). But I want t