Home
last modified time | relevance | path

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

/xnu-11215.1.10/bsd/netinet6/
H A Dnd6.c593 nd6_option_init(void *__sized_by(icmp6len) opt, size_t icmp6len, union nd_opts *ndopts) in nd6_option_init() argument
595 bzero(ndopts, sizeof(*ndopts)); in nd6_option_init()
597 ndopts->nd_opts_done = 0; in nd6_option_init()
598 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt; in nd6_option_init()
599 ndopts->nd_opts_last = (struct nd_opt_hdr *)(((u_char *)opt) + icmp6len); in nd6_option_init()
601 ndopts->nd_opts_done = 1; in nd6_option_init()
602 ndopts->nd_opts_search = NULL; in nd6_option_init()
603 ndopts->nd_opts_last = NULL; in nd6_option_init()
605 ndopts->nd_opts_initialized = 1; in nd6_option_init()
612 nd6_option(union nd_opts *ndopts) in nd6_option() argument
[all …]
H A Dnd6_nbr.c280 union nd_opts ndopts = {}; in nd6_ns_input() local
355 nd6_option_init(nd_ns + 1, icmp6len, &ndopts); in nd6_ns_input()
356 if (nd6_options(&ndopts) < 0) { in nd6_ns_input()
363 if (ndopts.nd_opts_src_lladdr) { in nd6_ns_input()
364 ND_OPT_LLADDR(ndopts.nd_opts_src_lladdr, nd_opt_len, lladdr, lladdrlen); in nd6_ns_input()
445 size_t noncelen = (ndopts.nd_opts_nonce == NULL) ? 0 : in nd6_ns_input()
446 ndopts.nd_opts_nonce->nd_opt_nonce_len << 3; in nd6_ns_input()
447 uint8_t *nonce = (ndopts.nd_opts_nonce == NULL) ? NULL : in nd6_ns_input()
448 __unsafe_forge_bidi_indexable(uint8_t *, ndopts.nd_opts_nonce->nd_opt_nonce, noncelen); in nd6_ns_input()
515 nd6_dad_ns_input(ifa, lladdr, lladdrlen, ndopts.nd_opts_nonce); in nd6_ns_input()
[all …]
H A Dnd6_rtr.c252 union nd_opts ndopts = {}; in nd6_rs_input() local
299 nd6_option_init(nd_rs + 1, icmp6len, &ndopts); in nd6_rs_input()
300 if (nd6_options(&ndopts) < 0) { in nd6_rs_input()
307 if (ndopts.nd_opts_src_lladdr) { in nd6_rs_input()
308 ND_OPT_LLADDR(ndopts.nd_opts_src_lladdr, nd_opt_len, lladdr, lladdrlen); in nd6_rs_input()
354 union nd_opts ndopts; in nd6_ra_input() local
434 nd6_option_init(nd_ra + 1, icmp6len, &ndopts); in nd6_ra_input()
435 if (nd6_options(&ndopts) < 0) { in nd6_ra_input()
490 if (ndopts.nd_opts_rti && IFNET_IS_ETHERNET(ifp)) { in nd6_ra_input()
498 for (rt = TAKE_ND_NEXT_OPT(ndopts.nd_opts_rti, nd_opts_rti, nd_opts_last); in nd6_ra_input()
[all …]
H A Dicmp6.c2531 union nd_opts ndopts = {}; in icmp6_redirect_input() local
2665 nd6_option_init(nd_rd + 1, icmp6len, &ndopts); in icmp6_redirect_input()
2666 if (nd6_options(&ndopts) < 0) { in icmp6_redirect_input()
2674 if (ndopts.nd_opts_tgt_lladdr) { in icmp6_redirect_input()
2675 ND_OPT_LLADDR(ndopts.nd_opts_tgt_lladdr, nd_opt_len, lladdr, lladdrlen); in icmp6_redirect_input()
2678 if (ndopts.nd_opts_rh) { in icmp6_redirect_input()
2679 ND_OPT_LLADDR(ndopts.nd_opts_rh, nd_opt_rh_len, redirhdr, redirhdrlen); in icmp6_redirect_input()
H A Dnd6.h825 …size_t __ndoptlen = (u_char*)ndopts.end - (u_char*)ndopts.start; \
/xnu-11215.1.10/bsd/net/
H A Dif_bridge.c8838 union nd_opts ndopts;
8859 nd6_option_init(nd_ns + 1, icmp6len - sizeof(*nd_ns), &ndopts);
8860 if (nd6_options(&ndopts) < 0) {
8865 if (ndopts.nd_opts_src_lladdr != NULL) {
8866 ND_OPT_LLADDR(ndopts.nd_opts_src_lladdr, nd_opt_len,
8891 union nd_opts ndopts;
8913 nd6_option_init(nd_na + 1, icmp6len - sizeof(*nd_na), &ndopts);
8914 if (nd6_options(&ndopts) < 0) {
8919 if (ndopts.nd_opts_tgt_lladdr == NULL) {
8924 ND_OPT_LLADDR(ndopts.nd_opts_tgt_lladdr, nd_opt_len, lladdr, lladdrlen);
[all …]