
402 Chapter 4—DHCPv6
1305–1319 A Request message must contain a Server Identifier option and it must match the
identifier of the receiving server. A Request message must also contain a Client Identifier
option. If any of the requirements are not met, the message is discarded.
Build Options for Reply and Identify Client
Listing 4-94
dhcp6s.c
1321 /*
1322 * configure necessary options based on the options in request.
1323 */
1324 dhcp6_init_options(&roptinfo);
1325
1326 /* server identifier option */
1327 if (duidcpy(&roptinfo.serverID, &server_duid)) {
1328 dprintf(LOG_ERR, FNAME, "failed to copy server ID");
1329 goto fail;
1330 }
1331 /* copy client information ...