2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

[master] Changed severity of the log message indicating checksum errors.

Merges in rt41757.
This commit is contained in:
Marcin Siodelski
2017-06-28 17:37:48 +02:00
parent d13749a95d
commit 63ccfbb045
3 changed files with 15 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ u_int32_t checksum (buf, nbytes, sum)
unsigned i;
#ifdef DEBUG_CHECKSUM
log_debug ("checksum (%x %d %x)", buf, nbytes, sum);
log_debug ("checksum (%x %d %x)", (unsigned)buf, nbytes, sum);
#endif
/* Checksum all the pairs of bytes first... */
@@ -366,8 +366,8 @@ decode_udp_ip_header(struct interface_info *interface,
udp_packets_bad_checksum++;
if (((udp_packets_seen > 4) && (udp_packets_bad_checksum != 0))
&& ((udp_packets_seen / udp_packets_bad_checksum) < 2)) {
log_info ("%u bad udp checksums in %u packets",
udp_packets_bad_checksum, udp_packets_seen);
log_debug ("%u bad udp checksums in %u packets",
udp_packets_bad_checksum, udp_packets_seen);
udp_packets_seen = udp_packets_bad_checksum = 0;
}