--- vida-0.8devel/dnspoofing.c 2003-06-28 14:02:28.000000000 +0200 +++ vida-0.8devel2/dnspoofing.c 2004-09-12 14:29:08.000000000 +0200 @@ -27,6 +27,9 @@ /* change it if u want */ #define IFACE "eth0" +/* DNS UDP header is 12 bytes long */ +#define LIBNET_DNSV4_H 0x0c + /* protos */ int parse_dns(char *packet); void dnshijacker(); @@ -287,7 +290,8 @@ info(0,"Spoofing the DNS query"); - if ((libnet_build_dnsv4(ntohs(cc.dns_id), /* dns id */ + if ((libnet_build_dnsv4(LIBNET_DNSV4_H, /* header size */ + ntohs(cc.dns_id), /* dns id */ 0x8180, /* control flags (QR,AA,RD,RA) */ 1, /* number of questions */ 1, /* number of answer RR's */ .