Home
last modified time | relevance | path

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

/xnu-12377.41.6/bsd/netinet6/
H A Dnd6.c600 nd6_option_init(void *__sized_by(icmp6len) opt, size_t icmp6len, union nd_opts *ndopts) in nd6_option_init() argument
602 bzero(ndopts, sizeof(*ndopts)); in nd6_option_init()
604 ndopts->nd_opts_done = 0; in nd6_option_init()
605 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt; in nd6_option_init()
606 ndopts->nd_opts_last = (struct nd_opt_hdr *)(((u_char *)opt) + icmp6len); in nd6_option_init()
608 ndopts->nd_opts_done = 1; in nd6_option_init()
609 ndopts->nd_opts_search = NULL; in nd6_option_init()
610 ndopts->nd_opts_last = NULL; in nd6_option_init()
612 ndopts->nd_opts_initialized = 1; in nd6_option_init()
619 nd6_option(union nd_opts *ndopts) in nd6_option() argument
[all …]
H A Dnd6_nbr.c281 union nd_opts ndopts = {}; in nd6_ns_input() local
356 nd6_option_init(nd_ns + 1, icmp6len, &ndopts); in nd6_ns_input()
357 if (nd6_options(&ndopts) < 0) { in nd6_ns_input()
364 if (ndopts.nd_opts_src_lladdr) { in nd6_ns_input()
365 ND_OPT_LLADDR(ndopts.nd_opts_src_lladdr, nd_opt_len, lladdr, lladdrlen); in nd6_ns_input()
446 size_t noncelen = (ndopts.nd_opts_nonce == NULL) ? 0 : in nd6_ns_input()
447 ndopts.nd_opts_nonce->nd_opt_nonce_len << 3; in nd6_ns_input()
448 uint8_t *nonce = (ndopts.nd_opts_nonce == NULL) ? NULL : in nd6_ns_input()
449 __unsafe_forge_bidi_indexable(uint8_t *, ndopts.nd_opts_nonce->nd_opt_nonce, noncelen); in nd6_ns_input()
516 nd6_dad_ns_input(ifa, lladdr, lladdrlen, ndopts.nd_opts_nonce); in nd6_ns_input()
[all …]
H A Dnd6_rtr.c254 union nd_opts ndopts = {}; in nd6_rs_input() local
303 nd6_option_init(nd_rs + 1, icmp6len, &ndopts); in nd6_rs_input()
304 if (nd6_options(&ndopts) < 0) { in nd6_rs_input()
311 if (ndopts.nd_opts_src_lladdr) { in nd6_rs_input()
312 ND_OPT_LLADDR(ndopts.nd_opts_src_lladdr, nd_opt_len, lladdr, lladdrlen); in nd6_rs_input()
359 union nd_opts ndopts; in nd6_ra_input() local
442 nd6_option_init(nd_ra + 1, icmp6len, &ndopts); in nd6_ra_input()
443 if (nd6_options(&ndopts) < 0) { in nd6_ra_input()
506 if (ndopts.nd_opts_rti && IFNET_IS_ETHERNET(ifp)) { in nd6_ra_input()
514 for (rt = TAKE_ND_NEXT_OPT(ndopts.nd_opts_rti, nd_opts_rti, nd_opts_last); in nd6_ra_input()
[all …]
H A Dicmp6.c2533 union nd_opts ndopts = {}; in icmp6_redirect_input() local
2667 nd6_option_init(nd_rd + 1, icmp6len, &ndopts); in icmp6_redirect_input()
2668 if (nd6_options(&ndopts) < 0) { in icmp6_redirect_input()
2676 if (ndopts.nd_opts_tgt_lladdr) { in icmp6_redirect_input()
2677 ND_OPT_LLADDR(ndopts.nd_opts_tgt_lladdr, nd_opt_len, lladdr, lladdrlen); in icmp6_redirect_input()
2680 if (ndopts.nd_opts_rh) { in icmp6_redirect_input()
2681 ND_OPT_LLADDR(ndopts.nd_opts_rh, nd_opt_rh_len, redirhdr, redirhdrlen); in icmp6_redirect_input()
H A Dnd6.h857 …size_t __ndoptlen = (u_char*)ndopts.end - (u_char*)ndopts.start; \
/xnu-12377.41.6/bsd/net/
H A Dif_bridge.c8255 union nd_opts ndopts;
8276 nd6_option_init(nd_ns + 1, icmp6len - sizeof(*nd_ns), &ndopts);
8277 if (nd6_options(&ndopts) < 0) {
8282 if (ndopts.nd_opts_src_lladdr != NULL) {
8283 ND_OPT_LLADDR(ndopts.nd_opts_src_lladdr, nd_opt_len,
8308 union nd_opts ndopts;
8330 nd6_option_init(nd_na + 1, icmp6len - sizeof(*nd_na), &ndopts);
8331 if (nd6_options(&ndopts) < 0) {
8336 if (ndopts.nd_opts_tgt_lladdr == NULL) {
8341 ND_OPT_LLADDR(ndopts.nd_opts_tgt_lladdr, nd_opt_len, lladdr, lladdrlen);
[all …]