Patch by Andrew Victor,
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Fri, 5 Mar 2004 14:25:49 +0000 (14:25 +0000)
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Fri, 5 Mar 2004 14:25:49 +0000 (14:25 +0000)
commit8b39405d9700091c62409f9a1f84f6ac4d1bd5fb
tree2d868bbb6059ee64dbf5cd6af9879a33c31562f8
parent90012582cb00c9158a0028bb34a8a49665f489cd
Patch by Andrew Victor,
In arpping.h, fix structure alignment of "struct arpMsg".
GCC can insert padding in the structure which causes udhcpd to send an
invalid ARP packet on the network.  It will then not receive a valid
reply, which can cause it to assign an IP address that's already in use
on the network.
(With kernels before 2.4.20, the "struct ethhdr" in linux/if_ether.h
wasn't marked as packed.  This is also an issue if your toolchain was
built with a pre-2.4.20 kernel).

git-svn-id: svn://busybox.net/trunk/busybox@8580 69ca8d6d-28ef-0310-b511-8ec308f3f277
networking/udhcp/arpping.c
networking/udhcp/arpping.h