philipp / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone

Blame SOURCES/dhcp-ffff-checksum.patch

c8bb8f
diff -up dhcp-4.2.5/common/packet.c.ffff dhcp-4.2.5/common/packet.c
c8bb8f
--- dhcp-4.2.5/common/packet.c.ffff	2013-10-07 17:21:18.000000000 +0200
c8bb8f
+++ dhcp-4.2.5/common/packet.c	2013-10-07 17:47:34.689600497 +0200
c8bb8f
@@ -326,6 +326,7 @@ decode_udp_ip_header(struct interface_in
c8bb8f
   len = ulen - sizeof(udp);
c8bb8f
 
c8bb8f
   usum = udp.uh_sum;
c8bb8f
+  if (usum == 0xffff) usum = 0;
c8bb8f
   udp.uh_sum = 0;
c8bb8f
 
c8bb8f
   /* XXX: We have to pass &udp, because we have to zero the checksum