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

Lines Matching refs:option

204 			warnx("-n dnsserv option was obsoleted.  "
668 /* the message must include a Client Identifier option */
670 dprintf(LOG_INFO, "%s" "no server ID option", FNAME);
676 /* the message must include a Server Identifier option in below messages*/
683 dprintf(LOG_INFO, "%s" "no server ID option", FNAME);
686 /* the contents of the Server Identifier option must match ours */
700 /* server information option */
757 * client to which the server has not sent a unicast option, the server
759 * containing a Status Code option with value UseMulticast, a Server
760 * Identifier option containing the server's DUID, the Client
761 * Identifier option from the client message and no other options.
799 * If the client has included a Rapid Commit option and the
805 * If Solicit has IA option, responds to Solicit with a Advertise
812 dprintf(LOG_DEBUG, "option type is %d", roptinfo.type);
824 /* don't response to info-req if there is any IA option */
946 * If the Request message contained an Option Request option, the
948 * the Option Request option the server is configured to return to the
952 * that we can provide. So we do not have to check the option request
1078 * If there were any Relay Message options, fill in the option-len
1153 struct dhcp6opt *option, *option_endptr = (struct dhcp6opt *) endptr;
1193 option = (struct dhcp6opt *) (relay_msg + 1);
1200 while ((option + 1) < option_endptr) {
1201 memcpy (&opt, &option->dh6opt_type, sizeof(opt));
1203 memcpy (&optlen, &option->dh6opt_len, sizeof(optlen));
1206 if ((char *) (option + 1) + optlen > (char *) option_endptr) {
1207 dprintf(LOG_ERR, "%s" "invalid option length in %s option",
1214 /* if this is not the first interface identifier option,
1241 ((char *) (option + 1)), optlen);
1247 "identifier option", FNAME);
1261 relayed_msg = (struct dhcp6 *) (option + 1);
1263 dprintf(LOG_INFO, "%s" "Duplicated Relay Message option",
1271 dprintf(LOG_INFO, "%s" "Unsupported option %s found in "
1275 /* advance the option pointer */
1276 option = (struct dhcp6opt *) (((char *) (option + 1)) + optlen);
1303 * client. A RELAY-REPL message and Relay Message option are added for
1314 struct dhcp6opt *option;
1331 option = (struct dhcp6opt *) (msg + 1);
1333 /* include an Interface Identifier option if it was present in the
1337 if ((((char *) option) + sizeof(struct dhcp6opt) +
1344 memcpy (&option->dh6opt_type, &type, sizeof(type));
1346 memcpy (&option->dh6opt_len, &len, sizeof(len));
1347 memcpy (option + 1, relay->intf_id->intf_id,
1350 option = (struct dhcp6opt *)(((char *)(option + 1)) +
1355 /* save a pointer to the relay message option so that it is easier
1357 relay->option = option;
1360 if ((char *) (option + 1) >= (char *) endptr) {
1366 /* lastly include the Relay Message option, which encapsulates the
1369 memcpy (&option->dh6opt_type, &type, sizeof(type));
1373 msg = (struct dhcp6_relay *) (option + 1);
1393 * Precondition: dhcp6_set_relay has already been called and the relay->option
1409 memcpy (&relay->option->dh6opt_len, &len, sizeof(len));
1413 len = reply_msg_len + (((void *) (last->option + 1)) -
1414 ((void *) (relay->option + 1)));
1416 memcpy (&relay->option->dh6opt_len, &len, sizeof(len));