Home
last modified time | relevance | path

Searched refs:ndopts (Results 1 – 5 of 5) sorted by relevance

/xnu-8020.101.4/bsd/netinet6/
H A Dnd6.c596 nd6_option_init(void *opt, int icmp6len, union nd_opts *ndopts) in nd6_option_init() argument
598 bzero(ndopts, sizeof(*ndopts)); in nd6_option_init()
599 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt; in nd6_option_init()
600 ndopts->nd_opts_last = in nd6_option_init()
604 ndopts->nd_opts_done = 1; in nd6_option_init()
605 ndopts->nd_opts_search = NULL; in nd6_option_init()
613 nd6_option(union nd_opts *ndopts) in nd6_option() argument
618 if (!ndopts) { in nd6_option()
621 if (!ndopts->nd_opts_last) { in nd6_option()
624 if (!ndopts->nd_opts_search) { in nd6_option()
[all …]
H A Dnd6_nbr.c273 union nd_opts ndopts = {}; in nd6_ns_input() local
344 nd6_option_init(nd_ns + 1, icmp6len, &ndopts); in nd6_ns_input()
345 if (nd6_options(&ndopts) < 0) { in nd6_ns_input()
352 if (ndopts.nd_opts_src_lladdr) { in nd6_ns_input()
353 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_ns_input()
354 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_ns_input()
437 (ndopts.nd_opts_nonce == NULL) ? NULL : in nd6_ns_input()
438 ndopts.nd_opts_nonce->nd_opt_nonce); in nd6_ns_input()
499 nd6_dad_ns_input(ifa, lladdr, lladdrlen, ndopts.nd_opts_nonce); in nd6_ns_input()
930 union nd_opts ndopts; in nd6_na_input() local
[all …]
H A Dnd6_rtr.c252 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 Dicmp6.c2504 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-8020.101.4/bsd/net/
H A Dif_bridge.c8239 union nd_opts ndopts;
8259 nd6_option_init(nd_ns + 1, icmp6len - sizeof(*nd_ns), &ndopts);
8260 if (nd6_options(&ndopts) < 0) {
8265 if (ndopts.nd_opts_src_lladdr != NULL) {
8266 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1);
8267 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3;
8296 union nd_opts ndopts;
8317 nd6_option_init(nd_na + 1, icmp6len - sizeof(*nd_na), &ndopts);
8318 if (nd6_options(&ndopts) < 0) {
8323 if (ndopts.nd_opts_tgt_lladdr == NULL) {
[all …]