mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[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>
This commit is contained in:
@@ -620,8 +620,8 @@ struct dhcphdr {
|
||||
/** Setting block name used for BootServerDHCP responses */
|
||||
#define PXEBS_SETTINGS_NAME "pxebs"
|
||||
|
||||
extern void * dhcp_chaddr ( struct net_device *netdev, uint8_t *hlen,
|
||||
uint16_t *flags );
|
||||
extern unsigned int dhcp_chaddr ( struct net_device *netdev, void *chaddr,
|
||||
uint16_t *flags );
|
||||
extern int dhcp_create_packet ( struct dhcp_packet *dhcppkt,
|
||||
struct net_device *netdev, uint8_t msgtype,
|
||||
const void *options, size_t options_len,
|
||||
|
||||
Reference in New Issue
Block a user