]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[dhcp] Use Ethernet-compatible chaddr, if possible
authorMichael Brown <mcb30@ipxe.org>
Wed, 15 Dec 2010 18:29:20 +0000 (18:29 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 15 Dec 2010 18:46:19 +0000 (18:46 +0000)
commit708c5060b9391eddb06701a175997220072262fe
tree360447d3030c679ea1194d969c35f45912a08be3
parentb9aeb439e27d80bc7fc53167c5df38fb8ccabb7a
[dhcp] Use Ethernet-compatible chaddr, if possible

For IPoIB, we currently use the hardware address (i.e. the eight-byte
GUID) as the DHCP chaddr.  This works, but some PXE servers (notably
Altiris RDP) refuse to respond if the chaddr field is anything other
than six bytes in length.

We already have the notion of an Ethernet-compatible link-layer
address, which is used in the iBFT (the design of which similarly
fails to account for non-Ethernet link layers).  Use this as the first
preferred alternative to the actual link-layer address when
constructing the DHCP chaddr field.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/dhcp.h
src/net/udp/dhcp.c
src/usr/dhcpmgmt.c