Re: [tcpdump-workers] a problem in code... please help

2009-09-06 Thread Guy Harris
On Sep 6, 2009, at 5:46 AM, Drona Nagarajan wrote: the file is saved as sniff.c now on the terminal when i gcc the code i get the problem /tmp/ccGTnIuI.o: In function `main': sniff.c:(.text+0x107): undefined reference to `pcap_lookupdev' sniff.c:(.text+0x160): undefined reference to `pcap

[tcpdump-workers] a problem in code... please help

2009-09-06 Thread Drona Nagarajan
i made this sniffer using the latest libpcap library but it is giving an error (not an error actually but its not running) please help asap as i'll show my sniffer as my this semester's project the code /* sniff.c a simple packet sniffer that counts the number of packets passed