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
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