Searched refs:ndopts (Results 1 – 5 of 5) sorted by relevance
/netbsd-src/sys/netinet6/ |
H A D | nd6.c | 202 nd6_option_init(void *opt, int icmp6len, union nd_opts *ndopts) in nd6_option_init() argument 205 memset(ndopts, 0, sizeof(*ndopts)); in nd6_option_init() 206 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt; in nd6_option_init() 207 ndopts->nd_opts_last in nd6_option_init() 211 ndopts->nd_opts_done = 1; in nd6_option_init() 212 ndopts->nd_opts_search = NULL; in nd6_option_init() 220 nd6_option(union nd_opts *ndopts) in nd6_option() argument 225 KASSERT(ndopts != NULL); in nd6_option() 226 KASSERT(ndopts->nd_opts_last != NULL); in nd6_option() 228 if (ndopts->nd_opts_search == NULL) in nd6_option() [all …]
|
H A D | nd6_rtr.c | 66 union nd_opts ndopts; in nd6_rtr_cache() local 100 nd6_option_init(nd_rs + 1, icmp6len, &ndopts); in nd6_rtr_cache() 118 nd6_option_init(nd_ra + 1, icmp6len, &ndopts); in nd6_rtr_cache() 122 if (nd6_options(&ndopts) < 0) { in nd6_rtr_cache() 128 if (ndopts.nd_opts_src_lladdr) { in nd6_rtr_cache() 129 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_rtr_cache() 130 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_rtr_cache()
|
H A D | nd6_nbr.c | 116 union nd_opts ndopts; in nd6_ns_input() local 178 nd6_option_init(nd_ns + 1, icmp6len, &ndopts); in nd6_ns_input() 179 if (nd6_options(&ndopts) < 0) { in nd6_ns_input() 185 if (ndopts.nd_opts_src_lladdr) { in nd6_ns_input() 186 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); in nd6_ns_input() 187 lladdrlen = ndopts.nd_opts_src_lladdr->nd_opt_len << 3; in nd6_ns_input() 329 nd6_dad_input(ifa, ndopts.nd_opts_nonce, sdlp); in nd6_ns_input() 339 if (IN6_IS_ADDR_UNSPECIFIED(&saddr6) && ndopts.nd_opts_nonce != NULL) { in nd6_ns_input() 340 if (nd6_dad_ownnonce(ifa, ndopts.nd_opts_nonce)) in nd6_ns_input() 626 union nd_opts ndopts; in nd6_na_input() local [all...] |
H A D | icmp6.c | 2257 union nd_opts ndopts; in icmp6_redirect_input() local 2365 nd6_option_init(nd_rd + 1, icmp6len, &ndopts); in icmp6_redirect_input() 2366 if (nd6_options(&ndopts) < 0) { in icmp6_redirect_input() 2374 if (ndopts.nd_opts_tgt_lladdr) { in icmp6_redirect_input() 2375 lladdr = (char *)(ndopts.nd_opts_tgt_lladdr + 1); in icmp6_redirect_input() 2376 lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3; in icmp6_redirect_input()
|
/netbsd-src/usr.sbin/rtadvd/ |
H A D | rtadvd.c | 899 union nd_opts ndopts; in rs_input() local 911 memset(&ndopts, 0, sizeof(ndopts)); in rs_input() 912 TAILQ_INIT(&ndopts.nd_opts_list); in rs_input() 915 &ndopts, NDOPT_FLAG_SRCLINKADDR)) { in rs_input() 931 ndopts.nd_opts_src_lladdr) { in rs_input() 989 free_ndopts(&ndopts); in rs_input() 1039 union nd_opts ndopts; in ra_input() local 1053 memset(&ndopts, 0, sizeof(ndopts)); in ra_input() 1054 TAILQ_INIT(&ndopts.nd_opts_list); in ra_input() 1057 &ndopts, NDOPT_FLAG_SRCLINKADDR | in ra_input() [all …]
|