[PATCH] dhcpc: Fix compile error with ancient kernel headers

Dan Moulding dan.moulding at rackwareinc.com
Tue Apr 29 14:16:39 UTC 2014


I have a need to build against old, decrepit kernel headers:
2.6.18. While I like shiny new kernels just as much as the next guy,
in this case I am forced to use the old kernel.

When building against the 2.6.18 kernel headers, I ran into some
compile errors in dhcpc.c. Back in 2012 (in commit 3c62bba), support
for dealing with packets with incomplete checksums was added. But that
ability requires that the kernel support PACKET_AUXDATA. My ancient
2.6.18 kernel headers know of no such thing and will have none of it.

This patch makes dhcpc.c check for kernel support for PACKET_AUXDATA
before running headlong and hotfoot trying to use it.

Dan Moulding (1):
  dhcpc: Check for kernel support for PACKET_AUXDATA

 networking/udhcp/dhcpc.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

-- 
1.8.2.1



More information about the busybox mailing list