[tcpdump-workers] more tcp packet issues(?)

2009-02-09 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 #include

Re: [tcpdump-workers] Injecting pcap files

2009-02-09 Thread Aaron Turner
On Mon, Feb 9, 2009 at 12:10 PM, Eloy Paris wrote: > On Mon, Feb 09, 2009 at 04:12:20PM +0530, Vipin M wrote: > >> Hi all, >> >> I need some guidance in some coding. >> >> My object is sniff and store a pcap file in wireless. Then play back that to >> air as i required. >> >> I know how to sniff a

Re: [tcpdump-workers] Injecting pcap files

2009-02-09 Thread Eloy Paris
On Mon, Feb 09, 2009 at 04:12:20PM +0530, Vipin M wrote: > Hi all, > > I need some guidance in some coding. > > My object is sniff and store a pcap file in wireless. Then play back that to > air as i required. > > I know how to sniff and store to a pcap file. > > I had look in to* *pcap_open_o

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

2009-02-09 Thread Guy Harris
On Feb 9, 2009, at 8:54 AM, David Andrey wrote: I open two different pcap_t's and become two different handles. The filter are different, but with low differences ( AND operation on 1 byte). @Guy You say that "filters aren't per-thread" ... does it mean that the second filter "delete" the firs

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

2009-02-09 Thread David Andrey
Hi, Thanks for help ! I open two different pcap_t's and become two different handles. The filter are different, but with low differences ( AND operation on 1 byte). @Guy You say that "filters aren't per-thread" ... does it mean that the second filter "delete" the first one ? @Gianluca "that fun

[tcpdump-workers] Injecting pcap files

2009-02-09 Thread Vipin M
Hi all, I need some guidance in some coding. My object is sniff and store a pcap file in wireless. Then play back that to air as i required. I know how to sniff and store to a pcap file. I had look in to* *pcap_open_offline() function for opening a file, pcap_open_live() for opening a interface