#ifndef lint
static char copyright[] =
-"$Id: packet.c,v 1.25 1999/04/23 15:38:57 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: packet.c,v 1.26 1999/04/23 22:15:43 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
}
return -1;
}
- if (len + data != buf + buflen)
+ if (len + data != buf + bufix + buflen)
log_debug ("accepting packet with data after udp payload.");
}
(u_int32_t)
ntohs (udp -> uh_ulen)))));
- ++udp_packets_seen;
+ udp_packets_seen++;
if (usum && usum != sum) {
udp_packets_bad_checksum++;
if (udp_packets_seen > 4 &&