[ipv4] Accept unicast packets for the local network broadcast address
authorMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2017 09:12:52 +0000 (09:12 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2017 09:12:52 +0000 (09:12 +0000)
commit43b2d8eafb2c1ac568d43be5491cc5b441c6c5e5
treed63c92b8a901c5cb6b0e57a15f8c8cb2d3aa780a
parent26050fd4c87c50503d5bd573b2ec91703676e211
[ipv4] Accept unicast packets for the local network broadcast address

The ISC Kea DHCP server transmits its DHCPOFFER as a unicast packet
with a broadcast IPv4 destination address (255.255.255.255).  This
combination is currently rejected by iPXE.

Fix by explicitly accepting the local network broadcast address
(255.255.255.255) as a valid unicast destination address.

Reported-by: Roy Ledochowski <roy.ledochowski@hpe.com>
Tested-by: Roy Ledochowski <roy.ledochowski@hpe.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/ipv4.c