• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/dhcp6/

Lines Matching refs:option

205 			warnx("-n dnsserv option was obsoleted.  "
677 /* the message must include a Client Identifier option */
679 dprintf(LOG_INFO, "%s" "no server ID option", FNAME);
685 /* the message must include a Server Identifier option in below messages*/
692 dprintf(LOG_INFO, "%s" "no server ID option", FNAME);
695 /* the contents of the Server Identifier option must match ours */
709 /* server information option */
766 * client to which the server has not sent a unicast option, the server
768 * containing a Status Code option with value UseMulticast, a Server
769 * Identifier option containing the server's DUID, the Client
770 * Identifier option from the client message and no other options.
808 * If the client has included a Rapid Commit option and the
814 * If Solicit has IA option, responds to Solicit with a Advertise
821 dprintf(LOG_DEBUG, "option type is %d", roptinfo.type);
833 /* don't response to info-req if there is any IA option */
877 /* Foxconn Bob modified start on 01/09/2015, include DNS option in the reply of renew packet,
958 * If the Request message contained an Option Request option, the
960 * the Option Request option the server is configured to return to the
964 * that we can provide. So we do not have to check the option request
1123 * If there were any Relay Message options, fill in the option-len
1226 struct dhcp6opt *option, *option_endptr = (struct dhcp6opt *) endptr;
1266 option = (struct dhcp6opt *) (relay_msg + 1);
1273 while ((option + 1) < option_endptr) {
1274 memcpy (&opt, &option->dh6opt_type, sizeof(opt));
1276 memcpy (&optlen, &option->dh6opt_len, sizeof(optlen));
1279 if ((char *) (option + 1) + optlen > (char *) option_endptr) {
1280 dprintf(LOG_ERR, "%s" "invalid option length in %s option",
1287 /* if this is not the first interface identifier option,
1314 ((char *) (option + 1)), optlen);
1320 "identifier option", FNAME);
1334 relayed_msg = (struct dhcp6 *) (option + 1);
1336 dprintf(LOG_INFO, "%s" "Duplicated Relay Message option",
1344 dprintf(LOG_INFO, "%s" "Unsupported option %s found in "
1348 /* advance the option pointer */
1349 option = (struct dhcp6opt *) (((char *) (option + 1)) + optlen);
1376 * client. A RELAY-REPL message and Relay Message option are added for
1387 struct dhcp6opt *option;
1404 option = (struct dhcp6opt *) (msg + 1);
1406 /* include an Interface Identifier option if it was present in the
1410 if ((((char *) option) + sizeof(struct dhcp6opt) +
1417 memcpy (&option->dh6opt_type, &type, sizeof(type));
1419 memcpy (&option->dh6opt_len, &len, sizeof(len));
1420 memcpy (option + 1, relay->intf_id->intf_id,
1423 option = (struct dhcp6opt *)(((char *)(option + 1)) +
1428 /* save a pointer to the relay message option so that it is easier
1430 relay->option = option;
1433 if ((char *) (option + 1) >= (char *) endptr) {
1439 /* lastly include the Relay Message option, which encapsulates the
1442 memcpy (&option->dh6opt_type, &type, sizeof(type));
1446 msg = (struct dhcp6_relay *) (option + 1);
1466 * Precondition: dhcp6_set_relay has already been called and the relay->option
1482 memcpy (&relay->option->dh6opt_len, &len, sizeof(len));
1486 len = reply_msg_len + (((void *) (last->option + 1)) -
1487 ((void *) (relay->option + 1)));
1489 memcpy (&relay->option->dh6opt_len, &len, sizeof(len));