Handle DHCPINFORM from clients behind a DHCP relay.
authorreyk <reyk@openbsd.org>
Tue, 11 Jul 2017 10:28:24 +0000 (10:28 +0000)
committerreyk <reyk@openbsd.org>
Tue, 11 Jul 2017 10:28:24 +0000 (10:28 +0000)
commit8415e52b1598f273c11974fc6d2b8ce98710b063
tree7fc6c7b98c571a965d8d1cd3c473dd8caaf4e5ad
parent74262a5e4b9a7e45dd7f60dabd021e3ac6abd2d7
Handle DHCPINFORM from clients behind a DHCP relay.

The dhcpinform() function has assumed that ciaddr matches the packet's
IP source address and didn't consider a relay, such as dhcrelay(8) -
indicated by giaddr, has forwarded the request.

Tested by landry@
OK krw@
usr.sbin/dhcpd/dhcp.c