Hello,
gcc -c -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAV E_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -Wall -DHAVE_ICMPHDR=1 -DHAVE_TCP_ STATE S=1 -DHAVE_BSD_UDPHDR=1 -I. libnids.c libnids.c:28: conflicting types for `pcap_open_live_new' /usr/include/pcap.h:119: previous declaration of `pcap_open_live_new'
It's already weired, that it passes the -D_BSD_SOURCE. Do I have to change anything there, or do I have to compile dsniff with a special option?
If you have installed libnetn (Series d), the gcc shows "libnids.c:28: conflicting types for `pcap_open_live_new'" (This should be an entry in pcap.h) So, first remove libnetn and use libnet insteed. dsniff will compile without using "pcap_open_live_new". After installing correctly you can reinstall libnetn, if you want (used for snort...) This is only a workaround, but we've tested this kind of spoofing/sniffing a while ago, and found this way to test... Greetings, Oliver Grube Network Security Engineer ******************************************** iT_SEC - enabling trusted ebusiness ******************************************** iT_SEC Deutschland GmbH Dünner Strasse 247, 41066 Mönchengladbach T: +49 2161 6897-0 // F: +49 2161 6897-199