Re: [tcpdump-workers] Debugging an issue with pcap_compile/pcap_setfilter

2010-02-19 Thread Adayadil Thomas
/lib/libpthread-2.5.so) ==3794==by 0x4DDEF42D: clone (in /lib/libc-2.5.so) ==3794== Address 0x683B232 is on thread 3's stack Please advice, Thanks On Fri, Oct 30, 2009 at 2:34 PM, Adayadil Thomas wrote: > I did not use the -ll option. I can try with that. > > However, th

Re: [tcpdump-workers] Debugging an issue with pcap_compile/pcap_setfilter

2009-10-30 Thread Adayadil Thomas
see the issue. If it is related to the -ll the problem should be seen every time, right? On Fri, Oct 30, 2009 at 3:21 PM, Guy Harris wrote: > > On Oct 29, 2009, at 8:23 AM, Adayadil Thomas wrote: > >> symbol lookup error: /usr/lib/libpcap.so.0.9.4: undefined symbol: >> lex

Re: [tcpdump-workers] Debugging an issue with pcap_compile/pcap_setfilter

2009-10-30 Thread Adayadil Thomas
The filter I was using is "tcp[13]&7!=0" Thanks On Fri, Oct 30, 2009 at 1:50 AM, Gianluca Varenni wrote: > What is the value of filter? > > GV > > - Original Message - From: "Adayadil Thomas" > > To: > Sent: Thursday, October 29, 2009 8

[tcpdump-workers] Debugging an issue with pcap_compile/pcap_setfilter

2009-10-29 Thread Adayadil Thomas
Hi All, I have a program that uses libpcap to read and analyze packets. Libpcap version: 0.9.4 The pseudo code of my program looks like this PacketFunc() { pd = pcap_open_live( ifname, snaplen, 1, 10, errorbuf); if ( !pd ) { //error out } if(pcap_compile(pd, &fcode, fil