[pkg-dhcp-commits] [SCM] ISC DHCP packaging for Debian branch, master, updated. debian/4.1.0-1-39-ge3907f7

Andrew Pollock apollock at debian.org
Tue Sep 1 04:51:37 UTC 2009


The following commit has been merged in the master branch:
commit 5e57b4f4568b63c963290769b98be220969e8f39
Author: Andrew Pollock <apollock at debian.org>
Date:   Mon Aug 31 21:42:21 2009 -0700

    Add patch to ignore checksums on the loopback interface

diff --git a/debian/patches/00list b/debian/patches/00list
index b25cfaa..614be38 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -2,6 +2,8 @@
 dhclient-script-exit-status
 # emailed upstream
 fix_groff_warnings
+# I think this has been independently emailed upstream
+no_loopback_checksum
 #ldap backend for dhcp3 server (docs and code)
 #dhcp-3.1.0-ldap-docs
 #dhcp-3.1.0-ldap-code
diff --git a/debian/patches/no_loopback_checksum.dpatch b/debian/patches/no_loopback_checksum.dpatch
new file mode 100755
index 0000000..6e41c99
--- /dev/null
+++ b/debian/patches/no_loopback_checksum.dpatch
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## no_loopback_checksum.dpatch by  <apollock at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Deal with the fact that the loopback interface isn't checsummed by Linux
+
+ at DPATCH@
+diff -urNad isc-dhcp~/common/packet.c isc-dhcp/common/packet.c
+--- isc-dhcp~/common/packet.c	2009-06-23 22:15:20.000000000 -0700
++++ isc-dhcp/common/packet.c	2009-08-31 21:40:19.000000000 -0700
+@@ -319,6 +319,11 @@
+ 				  checksum((unsigned char *)&ip.ip_src,
+ 					   8, IPPROTO_UDP + ulen))));
+ 
++  /* loopback interface isn't checksumed in linux */
++  if (interface -> hw_address.hbuf [0] == 0) {
++    usum = 0;
++  }
++
+   udp_packets_seen++;
+   if (usum && usum != sum) {
+ 	  udp_packets_bad_checksum++;

-- 
ISC DHCP packaging for Debian



More information about the pkg-dhcp-commits mailing list