Searched refs:ndopts (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/netinet6/ |
H A D | nd6.c | 389 nd6_option_init(void *opt, int icmp6len, union nd_opts *ndopts) in nd6_option_init() argument 392 bzero(ndopts, sizeof(*ndopts)); in nd6_option_init() 393 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt; in nd6_option_init() 394 ndopts->nd_opts_last in nd6_option_init() 398 ndopts->nd_opts_done = 1; in nd6_option_init() 399 ndopts->nd_opts_search = NULL; in nd6_option_init() 407 nd6_option(union nd_opts *ndopts) in nd6_option() argument 412 KASSERT(ndopts != NULL, ("%s: ndopts == NULL", __func__)); in nd6_option() 413 KASSERT(ndopts->nd_opts_last != NULL, ("%s: uninitialized ndopts", in nd6_option() 415 if (ndopts->nd_opts_search == NULL) in nd6_option() [all …]
|
H A D | nd6_nbr.c | 135 union nd_opts ndopts; in nd6_ns_input() local 216 nd6_option_init(nd_ns + 1, icmp6len, &ndopts); in nd6_ns_input() 217 if (nd6_options(&ndopts) < 0) { in nd6_ns_input() 226 if (ndopts.nd_opts_src_lladdr) { in nd6_ns_input() 227 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_ns_input() 228 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_ns_input() 319 nd6_dad_ns_input(ifa, ndopts.nd_opts_nonce); in nd6_ns_input() 663 union nd_opts ndopts; in nd6_na_input() local 728 nd6_option_init(nd_na + 1, icmp6len, &ndopts); in nd6_na_input() 729 if (nd6_options(&ndopts) < 0) { in nd6_na_input() [all …]
|
H A D | nd6_rtr.c | 162 union nd_opts ndopts; in nd6_rs_input() local 210 nd6_option_init(nd_rs + 1, icmp6len, &ndopts); in nd6_rs_input() 211 if (nd6_options(&ndopts) < 0) { in nd6_rs_input() 220 if (ndopts.nd_opts_src_lladdr) { in nd6_rs_input() 221 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_rs_input() 222 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_rs_input() 364 union nd_opts ndopts; in nd6_ra_input() local 410 nd6_option_init(nd_ra + 1, icmp6len, &ndopts); in nd6_ra_input() 411 if (nd6_options(&ndopts) < 0) { in nd6_ra_input() 475 if (ndopts.nd_opts_pi) { in nd6_ra_input() [all …]
|
H A D | icmp6.c | 2190 union nd_opts ndopts; in icmp6_redirect_input() local 2310 nd6_option_init(nd_rd + 1, icmp6len, &ndopts); in icmp6_redirect_input() 2311 if (nd6_options(&ndopts) < 0) { in icmp6_redirect_input() 2320 if (ndopts.nd_opts_tgt_lladdr) { in icmp6_redirect_input() 2321 lladdr = (char *)(ndopts.nd_opts_tgt_lladdr + 1); in icmp6_redirect_input() 2322 lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3; in icmp6_redirect_input()
|
/freebsd/usr.sbin/rtadvd/ |
H A D | rtadvd.c | 906 union nd_opt ndopts; in rs_input() local 918 memset(&ndopts, 0, sizeof(ndopts)); in rs_input() 919 TAILQ_INIT(&ndopts.opt_list); in rs_input() 922 &ndopts, NDOPT_FLAG_SRCLINKADDR)) { in rs_input() 938 ndopts.opt_src_lladdr) { in rs_input() 988 free_ndopts(&ndopts); in rs_input() 1070 union nd_opt ndopts; in ra_input() local 1081 memset(&ndopts, 0, sizeof(ndopts)); in ra_input() 1406 nd6_options(struct nd_opt_hdr * hdr,int limit,union nd_opt * ndopts,uint32_t optflags) nd6_options() argument 1520 free_ndopts(union nd_opt * ndopts) free_ndopts() argument [all...] |