2.2.1.2.5.2 Representing a DHCPv4 Client Unique ID

When the DHCP_CLIENT_UID (section 2.2.1.2.5) structure is used to represent a DHCPv4 client unique ID, the latter is stored in the Data field of the structure in the following format:

Bytes

Description

0–3

DHCPv4 Subnet ID. It can be calculated by doing a binary AND of the IP address of the DHCPv4 client and the subnet mask.

4

Hardware type. This value is always 0x01.

variable

DHCPv4 client-identifier.

Consider a DHCP_CLIENT_UID that represents the following:

  • DHCPv4 Subnet ID is 192.168.1.0

  • The hardware address of the DHCPv4 client-identifier is: 00-1c-25-80-a0-43

The contents of the Data field of the DHCP_CLIENT_UID will be as follows:

Bytes

Values

0–3

0x00, 0x01, 0xa8, 0xc0

4

0x01

5–10

0x00, 0x1c, 0x25, 0x80, 0xa0, 0x43