Lines Matching refs:nd_opt
405 struct nd_opt_hdr *nd_opt; in nd6_option() local
416 nd_opt = ndopts->nd_opts_search; in nd6_option()
419 if ((caddr_t)&nd_opt->nd_opt_len >= (caddr_t)ndopts->nd_opts_last) { in nd6_option()
424 olen = nd_opt->nd_opt_len << 3; in nd6_option()
434 ndopts->nd_opts_search = (struct nd_opt_hdr *)((caddr_t)nd_opt + olen); in nd6_option()
444 return nd_opt; in nd6_option()
455 struct nd_opt_hdr *nd_opt; in nd6_options() local
465 nd_opt = nd6_option(ndopts); in nd6_options()
466 if (nd_opt == NULL && ndopts->nd_opts_last == NULL) { in nd6_options()
476 if (nd_opt == NULL) in nd6_options()
479 switch (nd_opt->nd_opt_type) { in nd6_options()
485 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { in nd6_options()
488 nd_opt->nd_opt_type)); in nd6_options()
491 ndopts->nd_opt_array[nd_opt->nd_opt_type] in nd6_options()
492 = nd_opt; in nd6_options()
496 if (ndopts->nd_opt_array[nd_opt->nd_opt_type] == 0) { in nd6_options()
497 ndopts->nd_opt_array[nd_opt->nd_opt_type] in nd6_options()
498 = nd_opt; in nd6_options()
501 (struct nd_opt_prefix_info *)nd_opt; in nd6_options()
518 "option ignored\n", nd_opt->nd_opt_type)); in nd6_options()