#478532 dhcp3-server: dhcpd should ignore wrong udp checksums on loopback device

#478532#5
Date:
2008-04-29 15:54:42 UTC
From:
To:
Hello,

since linux 2.6.24 no longer calculate the udp checksum for packages on
the loopback device, dhcpd should ignore wrong checksums in packages
coming from this device.

We use dhcping 1.2-3 running on the same host as dhcpd to check if
dhcpd is still answering. This works great with linux 2.6.8 but fails
with linux 2.6.24.

According to http://kerneltrap.org/mailarchive/linux-netdev/2007/9/23/272755
the kernel no longer generates udp checksums for packets on localhost.
Instead it sets a flag that signals that the udp checksum should be
ignored.

Can you make dhcpd honoring this flag, please?


Here some details from my setup. These hosts are the only linux hosts
in their subnets, so I cannot run dhcping on another host.
--------------------------------------------
# hostA working
--------------------------------------------
Related Packages:
  dhcp-client               2.0pl5-19.1sarge3
  dhcp3-common              3.0.1-2
  dhcp3-server              3.0.1-2
  dhcping                   1.2-2
  kernel-image-2.6.8-4-686  2.6.8-16sarge7


/etc/dhcp3/dhcpd.conf
   ddns-update-style none;
   log-facility local7;
   default-lease-time 3600;
   max-lease-time 86400;
   not authoritative;

   subnet 192.XXX.XXX.0 netmask 255.255.255.0 {
    ...
   }

   subnet 127.0.0.0 netmask 255.0.0.0 {
       host hostA {hardware ethernet 00:0E:0C:71:XX:XX; fixed-address 192.XXX.XXX.1;}
   }


# /usr/sbin/dhcping -c 192.XXX.XXX.1 -s 192.XXX.XXX.1 -h 00:0E:0C:71:XX:XX
Got answer from: 192.XXX.XXX.1


# tethereal -V -i lo udp
Capturing on lo
Frame 1 (292 bytes on wire, 292 bytes captured)
...
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
    Source port: bootpc (68)
    Destination port: bootps (67)
    Length: 258
    Checksum: 0xc4c8 (correct)


#-------------------------------------------
# hostB not working
#-------------------------------------------
Related Packages:
  dhcp3-common              3.0.4-13
  dhcp3-server              3.0.4-13
  dhcping                   1.2-3
  linux-image-2.6.24-1-686  2.6.24-5


/etc/dhcp3/dhcpd.conf
   ddns-update-style none;
   log-facility local7;
   default-lease-time 3600;
   max-lease-time 86400;
   not authoritative;

   subnet 192.YYY.YYY.0 netmask 255.255.255.0 {
   ...
   }

   subnet 127.0.0.0 netmask 255.0.0.0 {
       host hostB  {hardware ethernet 00:1F:29:C3:YY:YY; fixed-address 192.YYY.YYY.1;}
   }


# /usr/sbin/dhcping -c 192.YYY.YYY.1 -s 192.YYY.YYY.1 -h 00:1F:29:C3:YY:YY
no answer


# tshark -V -i lo udp
Capturing on lo
Frame 1 (292 bytes on wire, 292 bytes captured)
...
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
    Source port: bootpc (68)
    Destination port: bootps (67)
    Length: 258
    Checksum: 0xfc66 [incorrect, should be 0xb39c]              !!!!
-------------------------------------------------- Thanks, Martin
#478532#8
Date:
2008-04-29 17:30:28 UTC
From:
To:
Hi,

This bug was submitted to Debian recently, and it's an upstream issue, so
I'm forwarding it on. Please maintain the Cc on replies to keep our bug
tracking system in the loop.

regards

Andrew

#478532#13
Date:
2008-04-29 19:50:32 UTC
From:
To:
----- Forwarded message from DHCP Bugs via RT <dhcp-bugs@isc.org> -----

From: DHCP Bugs via RT <dhcp-bugs@isc.org>
To: apollock@debian.org
Subject: [ISC-Bugs #18010] AutoReply: Re: Bug#478532: dhcp3-server: dhcpd should ignore wrong udp checksums on loopback device
Date: Tue, 29 Apr 2008 17:30:51 +0000


Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
	"Re: Bug#478532: dhcp3-server: dhcpd should ignore wrong udp checksums on loopback device",
a summary of which appears below.

There is no need to reply to this message right now.  Your ticket has been
assigned an ID of [ISC-Bugs #18010].

Please include the string:

         [ISC-Bugs #18010]

in the subject line of all future correspondence about this issue. To do so,
you may reply to this message.

                        Thank you,
                        dhcp-bugs@isc.org
------------------------------------------------------------------------- Hi, This bug was submitted to Debian recently, and it's an upstream issue, so I'm forwarding it on. Please maintain the Cc on replies to keep our bug tracking system in the loop. regards Andrew
----- End forwarded message -----
#478532#24
Date:
2026-08-05 17:31:09 UTC
From:
To:
Dear submitter,

as the package isc-dhcp has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1143544

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)