Home
last modified time | relevance | path

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

/xnu-8792.41.9/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.c2529 union nd_opts ndopts = {}; in icmp6_redirect_input() local
2664 nd6_option_init(nd_rd + 1, icmp6len, &ndopts); in icmp6_redirect_input()
2665 if (nd6_options(&ndopts) < 0) { in icmp6_redirect_input()
2673 if (ndopts.nd_opts_tgt_lladdr) { in icmp6_redirect_input()
2674 lladdr = (char *)(ndopts.nd_opts_tgt_lladdr + 1); in icmp6_redirect_input()
2675 lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3; in icmp6_redirect_input()
2678 if (ndopts.nd_opts_rh) { in icmp6_redirect_input()
2679 redirhdrlen = ndopts.nd_opts_rh->nd_opt_rh_len; in icmp6_redirect_input()
2680 redirhdr = (u_char *)(ndopts.nd_opts_rh + 1); /* xxx */ in icmp6_redirect_input()
/xnu-8792.41.9/bsd/net/
H A Dif_bridge.c8299 union nd_opts ndopts;
8319 nd6_option_init(nd_ns + 1, icmp6len - sizeof(*nd_ns), &ndopts);
8320 if (nd6_options(&ndopts) < 0) {
8325 if (ndopts.nd_opts_src_lladdr != NULL) {
8326 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1);
8327 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3;
8356 union nd_opts ndopts;
8377 nd6_option_init(nd_na + 1, icmp6len - sizeof(*nd_na), &ndopts);
8378 if (nd6_options(&ndopts) < 0) {
8383 if (ndopts.nd_opts_tgt_lladdr == NULL) {
[all …]