]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Changed severity of the log message indicating checksum errors.
authorMarcin Siodelski <marcin@isc.org>
Wed, 28 Jun 2017 15:37:48 +0000 (17:37 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 28 Jun 2017 15:37:48 +0000 (17:37 +0200)
    Merges in rt41757.

RELNOTES
common/packet.c
includes/site.h

index cbb00a69bd68ed1cbea13881ec2800177268e3c1..656c156f4d6ca4aad7f07d61d3350130a365ea50 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -1113,6 +1113,11 @@ by Eric Young (eay@cryptsoft.com).
   this the check was performed too far down stream to be detected in test mode.
   [ISC-Bugs #29892]
 
+- Changed severity of the log message indicating UDP checksum errors in
+  the received packets from 'info' to 'debug' to avoid logging excessive
+  number of false positives when UDP checksum offloading is enabled.
+  [ISC-bugs #41757]
+
                        Changes since 4.2.0 (new features)
 
 - If a client renews before 'dhcp-cache-threshold' percent of its lease
index e600e37c3a48ed3ac450e20ab6a8083431cb5fb6..6f51df40773e393da78d246631877005bb781bbc 100644 (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;
                }
 
index ccd4b24095a07d9f3b8bcdece9afb2299ae8d3af..b2fb8efc37ac78f519ae2f305f1534b551069ab3 100644 (file)
 /* Define this if you want to debug the binary leases (lease_chain) code */
 /* #define DEBUG_BINARY_LEASES */
 
+/* Define this if you want to debug checksum calculations */
+/* #define DEBUG_CHECKSUM */
+
+/* Define this if you want to verbosely debug checksum calculations */
+/* #define DEBUG_CHECKSUM_VERBOSE */
+
+
 /* Define this if you want DHCP failover protocol support in the DHCP
    server. */