3392392518
sd-network: DHCPv6 - add support to send userclass option 21.15. User Class Option The User Class option is used by a client to identify the type or category of users or applications it represents. The format of the User Class option is: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION_USER_CLASS | option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . user-class-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 26: User Class Option Format option-code OPTION_USER_CLASS (15). option-len Length of user-class-data field. user-class-data The user classes carried by the client. The length, in octets, is specified by option-len. The information contained in the data area of this option is contained in one or more opaque fields that represent the user class or classes of which the client is a member. A server selects configuration information for the client based on the classes identified in this option. For example, the User Class option can be used to configure all clients of people in the accounting department with a different printer than clients of people in the marketing department. The user class information carried in this option MUST be configurable on the client. The data area of the User Class option MUST contain one or more instances of user-class-data information. Each instance of user-class-data is formatted as follows: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+ | user-class-len | opaque-data | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+ Figure 27: Format of user-class-data Field |
||
---|---|---|
.. | ||
arp-util.c | ||
arp-util.h | ||
dhcp-client-internal.h | ||
dhcp-identifier.c | ||
dhcp-identifier.h | ||
dhcp-internal.h | ||
dhcp-lease-internal.h | ||
dhcp-network.c | ||
dhcp-option.c | ||
dhcp-packet.c | ||
dhcp-protocol.h | ||
dhcp-server-internal.h | ||
dhcp6-internal.h | ||
dhcp6-lease-internal.h | ||
dhcp6-network.c | ||
dhcp6-option.c | ||
dhcp6-protocol.h | ||
icmp6-util.c | ||
icmp6-util.h | ||
lldp-internal.h | ||
lldp-neighbor.c | ||
lldp-neighbor.h | ||
lldp-network.c | ||
lldp-network.h | ||
meson.build | ||
ndisc-internal.h | ||
ndisc-router.c | ||
ndisc-router.h | ||
network-internal.c | ||
network-internal.h | ||
radv-internal.h | ||
sd-dhcp-client.c | ||
sd-dhcp-lease.c | ||
sd-dhcp-server.c | ||
sd-dhcp6-client.c | ||
sd-dhcp6-lease.c | ||
sd-ipv4acd.c | ||
sd-ipv4ll.c | ||
sd-lldp.c | ||
sd-ndisc.c | ||
sd-radv.c | ||
test-acd.c | ||
test-dhcp-client.c | ||
test-dhcp-option.c | ||
test-dhcp-server.c | ||
test-dhcp6-client.c | ||
test-ipv4ll-manual.c | ||
test-ipv4ll.c | ||
test-lldp.c | ||
test-ndisc-ra.c | ||
test-ndisc-rs.c | ||
test-sd-dhcp-lease.c |