diff -Nru klibc-2.0.4/debian/changelog klibc-2.0.4/debian/changelog --- klibc-2.0.4/debian/changelog 2016-04-26 13:09:49.000000000 -0400 +++ klibc-2.0.4/debian/changelog 2016-09-15 11:56:00.000000000 -0400 @@ -1,3 +1,11 @@ +klibc (2.0.4-8ubuntu1.16.04.2) xenial; urgency=medium + + * debian/patches/fix_broadcast_flag-bit.patch: the previous patch set the + wrong bit in the bootp flags field, instead of 0x800 it must be 0x8000. + (LP: #1624014) + + -- Dan Streetman Thu, 15 Sep 2016 11:42:54 -0400 + klibc (2.0.4-8ubuntu1.16.04.1) xenial; urgency=medium * debian/patches/broadcast_dhcp_send.patch: yiaddr should always be set to 0 diff -Nru klibc-2.0.4/debian/patches/fix_broadcast_flag_bit.patch klibc-2.0.4/debian/patches/fix_broadcast_flag_bit.patch --- klibc-2.0.4/debian/patches/fix_broadcast_flag_bit.patch 1969-12-31 19:00:00.000000000 -0500 +++ klibc-2.0.4/debian/patches/fix_broadcast_flag_bit.patch 2016-09-15 11:54:29.000000000 -0400 @@ -0,0 +1,20 @@ +From: Dan Streetman +Subject: Fix PXE dhcp/bootp broadcast flag bit position +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733988 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1327412 + +This corrects the previous patch for the problem, as it set the wrong +bit. The correct flags value is 0x8000, not 0x800. + +diff -rupN a/usr/kinit/ipconfig/dhcp_proto.c klibc-2.0.3/usr/kinit/ipconfig/dhcp_proto.c +--- a/usr/kinit/ipconfig/dhcp_proto.c 2016-09-15 11:25:53.000000000 -0400 ++++ klibc-2.0.3/usr/kinit/ipconfig/dhcp_proto.c 2016-09-15 11:28:50.919549775 -0400 +@@ -208,7 +208,7 @@ static int dhcp_send(struct netdev *dev, + */ + bootp.yiaddr = INADDR_ANY; + bootp.giaddr = INADDR_ANY; +- bootp.flags = htons(0x800); ++ bootp.flags = htons(0x8000); + bootp.secs = htons(time(NULL) - dev->open_time); + memcpy(bootp.chaddr, dev->hwaddr, 16); + diff -Nru klibc-2.0.4/debian/patches/series klibc-2.0.4/debian/patches/series --- klibc-2.0.4/debian/patches/series 2016-03-18 15:18:59.000000000 -0400 +++ klibc-2.0.4/debian/patches/series 2016-09-15 11:54:29.000000000 -0400 @@ -18,3 +18,4 @@ syscalls-override-detection-of-direct-socket-syscalls-on-i386-m68k-s390.patch run-init-add-dry-run-mode.patch broadcast_dhcp_send.patch +fix_broadcast_flag_bit.patch