[ipxe-devel] [PATCH 1/3] dhcpv6: Fallback to using DUID-LL for empty UUID

Michael Brown mcb30 at ipxe.org
Thu Mar 1 12:30:17 UTC 2018


On 05/02/18 08:36, Hannes Reinecke wrote:
> +/** DHCP unique identifier based on Ethernet Link-layer address (DUID-LL) */
> +struct dhcpv6_duid_eth_ll {
> +	/** Type */
> +	uint16_t type;
> +	/** Hardware type: Ethernet */
> +	uint16_t hw_type;
> +	/** Ethernet link-layer address */
> +	uint8_t ll_addr[ETH_ALEN];
> +} __attribute__ (( packed ));

This needs to handle link-layer addresses that are not ETH_ALEN bytes 
long, since:

> +		memcpy( dhcpv6->client_duid.ll.ll_addr, netdev->ll_addr,
> +			ll_protocol->ll_addr_len );

Thanks,

Michael



More information about the ipxe-devel mailing list