Home
last modified time | relevance | path

Searched refs:scopeid (Results 1 – 25 of 38) sorted by relevance

12

/freebsd-13.1/sys/netinet6/
H A Din6_fib.c122 uint32_t scopeid, uint32_t flags, uint32_t flowid) in fib6_lookup() argument
128 nh = dp->f(dp->arg, key, scopeid); in fib6_lookup()
144 uint32_t scopeid, uint32_t flags, uint32_t flowid) in fib6_lookup() argument
163 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in fib6_lookup()
224 uint32_t scopeid) in lookup_nhop() argument
244 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lookup_nhop()
275 nh = dp->f(dp->arg, key, scopeid); in fib6_check_urpf()
277 nh = lookup_nhop(fibnum, dst6, scopeid); in fib6_check_urpf()
314 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in fib6_lookup_rt()
333 uint32_t scopeid, uint32_t flags) in fib6_lookup_debugnet() argument
[all …]
H A Din6_fib.h39 const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags,
42 uint32_t scopeid, uint32_t flags, const struct ifnet *src_if);
44 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd);
46 const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags);
48 const struct in6_addr *dst6, uint32_t scopeid);
H A Din6_fib_algo.c99 lradix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in lradix6_lookup() argument
108 addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lradix6_lookup()
249 radix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in radix6_lookup() argument
263 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in radix6_lookup()
276 fib6_radix_lookup_nh(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid) in fib6_radix_lookup_nh() argument
284 return (radix6_lookup(rh, key, scopeid)); in fib6_radix_lookup_nh()
H A Din6_src.c593 uint32_t scopeid, struct ifnet *ifp, struct in6_addr *srcp, in in6_selectsrc_addr() argument
605 dst_sa.sin6_scope_id = scopeid; in in6_selectsrc_addr()
760 uint32_t scopeid = 0; in selectroute() local
763 scopeid = ntohs(sa6->sin6_addr.s6_addr16[1]); in selectroute()
768 &sa6->sin6_addr, scopeid, NHR_REF, flowid); in selectroute()
771 sa6->sin6_addr.s6_addr16[1] = htons(scopeid); in selectroute()
915 uint32_t fibnum, scopeid; in in6_selecthlim() local
919 in6_splitscope(&inp->in6p_faddr, &dst, &scopeid); in in6_selecthlim()
920 nh = fib6_lookup(fibnum, &dst, scopeid, 0, 0); in in6_selecthlim()
H A Dscope6.c484 in6_set_unicast_scopeid(struct in6_addr *in6, uint32_t scopeid) in in6_set_unicast_scopeid() argument
487 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_set_unicast_scopeid()
522 uint32_t *scopeid) in in6_splitscope() argument
529 *scopeid = zoneid; in in6_splitscope()
H A Dnd6_nbr.c492 uint32_t scopeid; in nd6_ns_output_fib() local
494 in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); in nd6_ns_output_fib()
496 scopeid, ifp, &src6, NULL); in nd6_ns_output_fib()
952 uint32_t scopeid; in nd6_na_output_fib() local
1011 in6_splitscope(&daddr6, &dst6, &scopeid); in nd6_na_output_fib()
1013 scopeid, ifp, &src6, NULL); in nd6_na_output_fib()
H A Dip6_output.c729 uint32_t scopeid; in ip6_output() local
746 in6_splitscope(&dst_sa.sin6_addr, &kdst, &scopeid); in ip6_output()
750 if (scopeid > 0) { in ip6_output()
751 ifp = in6_getlinkifnet(scopeid); in ip6_output()
761 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, in ip6_output()
1457 uint32_t scopeid; in ip6_getpmtu_ctl() local
1460 in6_splitscope(dst, &kdst, &scopeid); in ip6_getpmtu_ctl()
1463 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, 0); in ip6_getpmtu_ctl()
1490 uint32_t scopeid; in ip6_getpmtu() local
1516 in6_splitscope(dst, &kdst, &scopeid); in ip6_getpmtu()
[all …]
H A Dicmp6.c2120 uint32_t scopeid; in icmp6_reflect() local
2127 in6_splitscope(&ip6->ip6_src, &dst6, &scopeid); in icmp6_reflect()
2129 scopeid, NULL, &src6, &hlim); in icmp6_reflect()
2269 uint32_t scopeid; in icmp6_redirect_input() local
2271 in6_splitscope(&reddst6, &kdst, &scopeid); in icmp6_redirect_input()
2273 nh = fib6_lookup(ifp->if_fib, &kdst, scopeid, 0, 0); in icmp6_redirect_input()
/freebsd-13.1/sys/netinet/
H A Din_fib.c113 fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup() argument
120 nh = dp->f(dp->arg, key, scopeid); in fib4_lookup()
135 fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup() argument
214 lookup_nhop(uint32_t fibnum, struct in_addr dst, uint32_t scopeid) in lookup_nhop() argument
253 fib4_check_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_check_urpf() argument
261 nh = dp->f(dp->arg, key, scopeid); in fib4_check_urpf()
263 nh = lookup_nhop(fibnum, dst, scopeid); in fib4_check_urpf()
281 fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup_rt() argument
317 fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup_debugnet() argument
323 rt = fib4_lookup_rt(fibnum, dst, scopeid, NHR_UNLOCKED, &rnd); in fib4_lookup_debugnet()
H A Din_fib.h52 uint32_t scopeid, uint32_t flags, uint32_t flowid);
53 int fib4_check_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid,
55 struct rtentry *fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid,
58 uint32_t scopeid, uint32_t flags);
H A Din_fib_algo.c97 bsearch4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in bsearch4_lookup() argument
203 uint32_t scopeid; in bsearch4_add_route_cb() local
209 rt_get_inet_prefix_pmask(rt, &addr4, &mask4, &scopeid); in bsearch4_add_route_cb()
528 lradix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in lradix4_lookup() argument
608 uint32_t scopeid; in lradix4_add_route_cb() local
618 rt_get_inet_prefix_pmask(rt, &addr4, &mask4, &scopeid); in lradix4_add_route_cb()
679 radix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in radix4_lookup() argument
H A Din_fib_dxr.c314 const struct flm_lookup_key key, uint32_t scopeid __unused) \
368 uint32_t scopeid; in initheap() local
370 rt_get_inet_prefix_plen(rt, &addr, &fhp->preflen, &scopeid); in initheap()
709 uint32_t preflen, nh, start, end, scopeid; in dxr_walk() local
712 rt_get_inet_prefix_plen(rt, &addr, &preflen, &scopeid); in dxr_walk()
1108 uint32_t scopeid) in dxr_fib_lookup() argument
/freebsd-13.1/sys/contrib/dpdk_rte_lpm/
H A Ddpdk_lpm6.c81 uint32_t scopeid) in lookup_ptr_ll() argument
87 return (fib6_radix_lookup_nh(rte_ext->fibnum, dst6, scopeid)); in lookup_ptr_ll()
120 return (lookup_ptr_ll(lpm6, addr6, scopeid)); in lookup_ptr()
161 const struct in6_addr addr6, int plen, uint32_t scopeid) in handle_ll_change() argument
180 uint32_t nhop_idx, scopeid; in pack_parent_rule() local
182 rt_get_inet6_prefix_plen(rt, &new_addr6, &plen, &scopeid); in pack_parent_rule()
252 uint32_t scopeid; in handle_any_change() local
255 rt_get_inet6_prefix_plen(rc->rc_rt, &addr6, &plen, &scopeid); in handle_any_change()
258 ret = handle_ll_change(dd, rc, addr6, plen, scopeid); in handle_any_change()
303 uint32_t scopeid; in add_route_cb() local
[all …]
H A Ddpdk_lpm.c79 lookup_ptr(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in lookup_ptr() argument
145 uint32_t scopeid; in get_parent_rule() local
148 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid); in get_parent_rule()
220 uint32_t scopeid; in handle_rtable_change_cb() local
224 rt_get_inet_prefix_plen(rc->rc_rt, &addr4, &plen, &scopeid); in handle_rtable_change_cb()
253 uint32_t scopeid; in add_route_cb() local
256 rt_get_inet_prefix_plen(rt, &addr4, &plen, &scopeid); in add_route_cb()
/freebsd-13.1/sys/net/route/
H A Droute_helpers.c432 uint32_t scopeid; in get_inet_parent_prefix() local
440 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid); in get_inet_parent_prefix()
454 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid); in get_inet_parent_prefix()
504 uint32_t scopeid; in get_inet6_parent_prefix() local
512 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix()
526 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix()
H A Dfib_algo.h60 uint32_t scopeid; member
74 const struct flm_lookup_key key, uint32_t scopeid);
H A Dfib_algo.c719 rt_get_inet_prefix_plen(rc->rc_rt, &ce->addr4, &plen, &ce->scopeid); in fill_change_entry()
724 rt_get_inet6_prefix_plen(rc->rc_rt, &ce->addr6, &plen, &ce->scopeid); in fill_change_entry()
1542 dummy_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in dummy_lookup() argument
/freebsd-13.1/sys/tests/fib_lookup/
H A Dfib_lookup.c309 uint32_t scopeid; in cmp_dst() local
317 rt_get_inet_prefix_plen(rt, &dst, &plen, &scopeid); in cmp_dst()
346 uint32_t scopeid; in cmp_dst6() local
354 rt_get_inet6_prefix_plen(rt, &dst, &plen, &scopeid); in cmp_dst6()
454 uint32_t scopeid, haddr; in add_prefix() local
464 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in add_prefix()
638 uint32_t scopeid; in add_prefix6() local
648 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in add_prefix6()
767 uint32_t scopeid; in reduce_keys() local
770 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in reduce_keys()
/freebsd-13.1/sys/netgraph/netflow/
H A Dnetflow.c357 uint32_t scopeid; in hash_insert() local
361 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in hash_insert()
381 uint32_t scopeid; in hash_insert() local
384 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in hash_insert()
435 uint32_t scopeid; in hash6_insert() local
439 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in hash6_insert()
455 uint32_t scopeid; in hash6_insert() local
458 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in hash6_insert()
/freebsd-13.1/share/examples/IPv6/
H A DUSAGE57 inet6 fe80::200:f8ff:fe01:6317%de0 prefixlen 64 scopeid 0x1
90 inet6 fe80::200:f8ff:fe01:6317%de0 prefixlen 64 scopeid 0x1
97 inet6 fe80::200:f8ff:fe01:6317%de0 prefixlen 64 scopeid 0x1
122 inet6 fe80::200:f8ff:fe01:6317%de0 prefixlen 64 scopeid 0x1
129 inet6 fe80::200:f8ff:fe55:7011%de1 prefixlen 64 scopeid 0x2
151 inet6 fe80::200:f8ff:fe01:6317%de0 prefixlen 64 scopeid 0x1
158 inet6 fe80::200:f8ff:fe55:7011%de0 prefixlen 64 scopeid 0x2
290 inet6 fe80::2a0:24ff:feab:839b%ef0 prefixlen 64 scopeid 0x2
296 inet6 fe80::2a0:24ff:feab:839b%ef0 prefixlen 64 scopeid 0x2
/freebsd-13.1/usr.sbin/ppp/
H A Dncpaddr.c891 int scopeid = -1; in ncprange_scopeid() local
896 if ((scopeid = ntohs(*(const u_short *)&sin6->s6_addr[2])) == 0) in ncprange_scopeid()
897 scopeid = -1; in ncprange_scopeid()
900 return scopeid; in ncprange_scopeid()
H A Diface.c771 int scopeid, width; in iface_Show() local
818 if ((scopeid = ncprange_scopeid(&iface->addr[f].ifa)) != -1) in iface_Show()
819 prompt_Printf(arg->prompt, " scopeid 0x%x", (unsigned)scopeid); in iface_Show()
/freebsd-13.1/lib/libc/net/
H A Dgetaddrinfo.c1371 u_int32_t scopeid; in explore_numeric_scope()
1377 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope()
1383 sin6->sin6_scope_id = scopeid; in explore_numeric_scope()
1688 ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid) in ip6_str2scopeid() argument
1707 *scopeid = if_nametoindex(scope); in ip6_str2scopeid()
1708 if (*scopeid == 0) in ip6_str2scopeid()
1725 *scopeid = (u_int32_t)(lscopeid & 0xffffffffUL); in ip6_str2scopeid()
1726 if (errno == 0 && ep && *ep == '\0' && *scopeid == lscopeid) in ip6_str2scopeid()
/freebsd-13.1/sys/net/
H A Drtsock.c870 uint32_t scopeid = 0; in export_rtaddrs() local
872 &scopeid); in export_rtaddrs()
880 uint32_t scopeid = 0; in export_rtaddrs() local
882 &mask6->sin6_addr, &scopeid); in export_rtaddrs()
883 dst6->sin6_scope_id = scopeid; in export_rtaddrs()
1348 uint32_t scopeid) in fill_sockaddr_inet6() argument
1355 .sin6_scope_id = scopeid, in fill_sockaddr_inet6()
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c197 uint32_t scope, uint32_t scopeid) in ifa_make_sockaddr() argument
208 ((struct sockaddr_in6*)sa)->sin6_scope_id = scopeid; in ifa_make_sockaddr()
248 ((struct sockaddr_in6*)sa)->sin6_scope_id = scopeid; in ifa_make_sockaddr_mask()

12