Searched refs:ndopts (Results 1 – 5 of 5) sorted by relevance
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | nd6.c | 593 nd6_option_init(void *opt, int icmp6len, union nd_opts *ndopts) in nd6_option_init() argument 595 bzero(ndopts, sizeof(*ndopts)); in nd6_option_init() 596 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt; in nd6_option_init() 597 ndopts->nd_opts_last = in nd6_option_init() 601 ndopts->nd_opts_done = 1; in nd6_option_init() 602 ndopts->nd_opts_search = NULL; in nd6_option_init() 610 nd6_option(union nd_opts *ndopts) in nd6_option() argument 615 if (!ndopts) { in nd6_option() 618 if (!ndopts->nd_opts_last) { in nd6_option() 621 if (!ndopts->nd_opts_search) { in nd6_option() [all …]
|
| H A D | nd6_nbr.c | 270 union nd_opts ndopts = {}; in nd6_ns_input() local 341 nd6_option_init(nd_ns + 1, icmp6len, &ndopts); in nd6_ns_input() 342 if (nd6_options(&ndopts) < 0) { in nd6_ns_input() 349 if (ndopts.nd_opts_src_lladdr) { in nd6_ns_input() 350 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_ns_input() 351 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_ns_input() 434 (ndopts.nd_opts_nonce == NULL) ? NULL : in nd6_ns_input() 435 ndopts.nd_opts_nonce->nd_opt_nonce); in nd6_ns_input() 496 nd6_dad_ns_input(ifa, lladdr, lladdrlen, ndopts.nd_opts_nonce); in nd6_ns_input() 927 union nd_opts ndopts; in nd6_na_input() local [all …]
|
| H A D | nd6_rtr.c | 252 union nd_opts ndopts = {}; in nd6_rs_input() local 297 nd6_option_init(nd_rs + 1, icmp6len, &ndopts); in nd6_rs_input() 298 if (nd6_options(&ndopts) < 0) { in nd6_rs_input() 305 if (ndopts.nd_opts_src_lladdr) { in nd6_rs_input() 306 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_rs_input() 307 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_rs_input() 353 union nd_opts ndopts; in nd6_ra_input() local 418 nd6_option_init(nd_ra + 1, icmp6len, &ndopts); in nd6_ra_input() 419 if (nd6_options(&ndopts) < 0) { in nd6_ra_input() 471 if (ndopts.nd_opts_rti && IFNET_IS_ETHERNET(ifp)) { in nd6_ra_input() [all …]
|
| H A D | icmp6.c | 2504 union nd_opts ndopts = {}; in icmp6_redirect_input() local 2639 nd6_option_init(nd_rd + 1, icmp6len, &ndopts); in icmp6_redirect_input() 2640 if (nd6_options(&ndopts) < 0) { in icmp6_redirect_input() 2648 if (ndopts.nd_opts_tgt_lladdr) { in icmp6_redirect_input() 2649 lladdr = (char *)(ndopts.nd_opts_tgt_lladdr + 1); in icmp6_redirect_input() 2650 lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3; in icmp6_redirect_input() 2653 if (ndopts.nd_opts_rh) { in icmp6_redirect_input() 2654 redirhdrlen = ndopts.nd_opts_rh->nd_opt_rh_len; in icmp6_redirect_input() 2655 redirhdr = (u_char *)(ndopts.nd_opts_rh + 1); /* xxx */ in icmp6_redirect_input()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | if_bridge.c | 8060 union nd_opts ndopts; 8080 nd6_option_init(nd_ns + 1, icmp6len - sizeof(*nd_ns), &ndopts); 8081 if (nd6_options(&ndopts) < 0) { 8086 if (ndopts.nd_opts_src_lladdr != NULL) { 8087 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); 8088 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; 8117 union nd_opts ndopts; 8138 nd6_option_init(nd_na + 1, icmp6len - sizeof(*nd_na), &ndopts); 8139 if (nd6_options(&ndopts) < 0) { 8144 if (ndopts.nd_opts_tgt_lladdr == NULL) { [all …]
|