Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 5100afcac65964d1b3148a75aaf01972 > files > 1

dhcpdump-1.8-3mdv2010.0.src.rpm

Index: dhcpdump.c
===================================================================
--- dhcpdump.c
+++ dhcpdump.c	2008-08-12 00:56:10.000000000 +0200
@@ -10,7 +10,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/time.h>
+#include <time.h>
 #include <net/ethernet.h>
 #include <netinet/in_systm.h>
 #include <netinet/in.h>
@@ -163,10 +163,10 @@
 	strcpy(ip_origin, (u_char *)inet_ntoa(ip->ip_src));
 	strcpy(ip_destination, (u_char *)inet_ntoa(ip->ip_dst));
 
-	if (hmask && check_ch((u_char *)(sp + offset), ntohs(udp->uh_ulen)))
+	if (hmask && check_ch((u_char *)(sp + offset), ntohs(udp->len)))
 		return;
 
-	printdata((u_char *)(sp + offset), ntohs(udp->uh_ulen));
+	printdata((u_char *)(sp + offset), ntohs(udp->len));
 }
 
 // check for matching CHADDR (Peter Apian-Bennewitz <apian@ise.fhg.de>)