2.2.4 DHCPv6 Option Code 15 (0x000F) - User Class Option
DHCPv6 clients implementing this specification MUST use the message format and semantics specified in [RFC3315] when sending a User Class Option to a DHCPv6 server. The DHCPv6 client MUST send a maximum of only one User Class Option in a DHCPv6 message. This section describes the message format of User Class Option sent by DHCPv6 servers that implement this specification in response to an Option Request from the DHCPv6 client. The format of this option varies from the implementation described in [RFC3315].
DHCPv6 clients MAY<10> request the user classes configured on the DHCPv6 server by sending an Information-request message containing OPTION_ORO (Option 6) with OPTION_USER_CLASS (Option 15) as the ONLY requested option. On receiving the message, the DHCPv6 server SHOULD<11> send a Reply message to the DHCPv6 client containing one or more User Class Options (one for each user class configured on the DHCPv6 server) in the format shown as follows. This behavior is an extension of the DHCPv6 protocol defined in [RFC3315]. The DHCPv6 server MUST send the OPTION_USER_CLASS with a format described in [RFC3315] when the DHCPv6 server sends the option in response to an OPTION_USER_CLASS received from a DHCPv6 client as described in [RFC3315].
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Option Code |
Option Length |
||||||||||||||||||||||||||||||
User Class Data Length |
User Class Binary Data Length |
||||||||||||||||||||||||||||||
User Class Binary Data (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
Padding (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
User Class Name Length |
User Class Name (variable) |
||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
User Class Description Length |
User Class Description (variable) |
||||||||||||||||||||||||||||||
... |
Option Code (2 bytes): This MUST be 15 (0x000F) to indicate User Class Option.
Option Length (2 bytes): The unsigned length, in bytes, of the User Class Option, not including the Option Code and Option Length fields.
User Class Data Length (2 bytes): Value is variable, depending on the size of User Class Binary Data, User Class Name and User Class Description.
User Class Binary Data Length (2 bytes): Size of User Class Binary Data in octets.
User Class Binary Data (variable): Binary data of a User Class set on the DHCPv6 server.
Padding (variable): Padding to align User Class Binary data to 4-byte boundary.
User Class Name Length (2 bytes): Size of User Class Name in octets.
User Class Name (variable): Name of a User Class set on the DHCPv6 server.
User Class Description Length (2 bytes): Size of User Class Description in octets.
User Class Description (variable): Description of a User Class defined on the DHCPv6 server.