Home
last modified time | relevance | path

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

/f-stack/freebsd/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.c596 uint32_t scopeid, struct ifnet *ifp, struct in6_addr *srcp, in in6_selectsrc_addr() argument
608 dst_sa.sin6_scope_id = scopeid; in in6_selectsrc_addr()
763 uint32_t scopeid = 0; in selectroute() local
766 scopeid = ntohs(sa6->sin6_addr.s6_addr16[1]); in selectroute()
771 &sa6->sin6_addr, scopeid, NHR_REF, flowid); in selectroute()
774 sa6->sin6_addr.s6_addr16[1] = htons(scopeid); in selectroute()
918 uint32_t fibnum, scopeid; in in6_selecthlim() local
922 in6_splitscope(&inp->in6p_faddr, &dst, &scopeid); in in6_selecthlim()
923 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.c491 uint32_t scopeid; in nd6_ns_output_fib() local
493 in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); in nd6_ns_output_fib()
495 scopeid, ifp, &src6, NULL); in nd6_ns_output_fib()
948 uint32_t scopeid; in nd6_na_output_fib() local
1005 in6_splitscope(&daddr6, &dst6, &scopeid); in nd6_na_output_fib()
1007 scopeid, ifp, &src6, NULL); in nd6_na_output_fib()
H A Dip6_output.c743 uint32_t scopeid; in ip6_output() local
760 in6_splitscope(&dst_sa.sin6_addr, &kdst, &scopeid); in ip6_output()
764 if (scopeid > 0) { in ip6_output()
765 ifp = in6_getlinkifnet(scopeid); in ip6_output()
775 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, in ip6_output()
1466 uint32_t scopeid; in ip6_getpmtu_ctl() local
1469 in6_splitscope(dst, &kdst, &scopeid); in ip6_getpmtu_ctl()
1472 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, 0); in ip6_getpmtu_ctl()
1499 uint32_t scopeid; in ip6_getpmtu() local
1525 in6_splitscope(dst, &kdst, &scopeid); in ip6_getpmtu()
[all …]
H A Dicmp6.c2123 uint32_t scopeid; in icmp6_reflect() local
2130 in6_splitscope(&ip6->ip6_src, &dst6, &scopeid); in icmp6_reflect()
2132 scopeid, NULL, &src6, &hlim); in icmp6_reflect()
2272 uint32_t scopeid; in icmp6_redirect_input() local
2274 in6_splitscope(&reddst6, &kdst, &scopeid); in icmp6_redirect_input()
2276 nh = fib6_lookup(ifp->if_fib, &kdst, scopeid, 0, 0); in icmp6_redirect_input()
H A Din6.c2195 uint32_t scopeid; in in6_lltable_rtcheck() local
2204 in6_splitscope(&sin6->sin6_addr, &dst, &scopeid); in in6_lltable_rtcheck()
2206 nh = fib6_lookup(fibnum, &dst, scopeid, NHR_NONE, 0); in in6_lltable_rtcheck()
H A Din6_mcast.c1834 uint32_t scopeid; in in6p_lookup_mcast_ifp() local
1840 in6_splitscope(&gsin6->sin6_addr, &dst, &scopeid); in in6p_lookup_mcast_ifp()
1842 nh = fib6_lookup(fibnum, &dst, scopeid, 0, 0); in in6p_lookup_mcast_ifp()
/f-stack/freebsd/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 Dtcp_subr.c2979 uint32_t scopeid; in tcp_maxmtu6() local
2989 in6_splitscope(&inc->inc6_faddr, &dst6, &scopeid); in tcp_maxmtu6()
2990 nh = fib6_lookup(inc->inc_fibnum, &dst6, scopeid, NHR_NONE, 0); in tcp_maxmtu6()
/f-stack/freebsd/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
179 uint32_t scopeid; in pack_parent_rule() local
181 rt_get_inet6_prefix_plen(rt, &new_addr6, &plen, &scopeid); in pack_parent_rule()
250 uint32_t scopeid; in handle_any_change() local
253 rt_get_inet6_prefix_plen(rc->rc_rt, &addr6, &plen, &scopeid); in handle_any_change()
256 ret = handle_ll_change(dd, rc, addr6, plen, scopeid); in handle_any_change()
301 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
147 rt_get_inet_prefix_plen(rt, &addr4, &inet_plen, &scopeid); in get_parent_rule()
216 uint32_t scopeid; in handle_rtable_change_cb() local
220 rt_get_inet_prefix_plen(rc->rc_rt, &addr4, &plen, &scopeid); in handle_rtable_change_cb()
249 uint32_t scopeid; in add_route_cb() local
252 rt_get_inet_prefix_plen(rt, &addr4, &plen, &scopeid); in add_route_cb()
/f-stack/freebsd/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()
377 uint32_t scopeid; in hash_insert() local
380 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in hash_insert()
431 uint32_t scopeid; in hash6_insert() local
435 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in hash6_insert()
451 uint32_t scopeid; in hash6_insert() local
454 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in hash6_insert()
/f-stack/freebsd/net/route/
H A Dfib_algo.h55 const struct flm_lookup_key key, uint32_t scopeid);
/f-stack/lib/
H A Dff_route.c144 uint32_t scopeid) in fill_sockaddr_inet6() argument
151 .sin6_scope_id = scopeid, in fill_sockaddr_inet6()
916 uint32_t scopeid = 0; in export_rtaddrs() local
918 &scopeid); in export_rtaddrs()
925 uint32_t scopeid = 0; in export_rtaddrs() local
927 &mask6->sin6_addr, &scopeid); in export_rtaddrs()
928 dst6->sin6_scope_id = scopeid; in export_rtaddrs()
/f-stack/freebsd/net/
H A Drtsock.c861 uint32_t scopeid = 0; in export_rtaddrs() local
863 &scopeid); in export_rtaddrs()
871 uint32_t scopeid = 0; in export_rtaddrs() local
873 &mask6->sin6_addr, &scopeid); in export_rtaddrs()
874 dst6->sin6_scope_id = scopeid; in export_rtaddrs()
1315 uint32_t scopeid) in fill_sockaddr_inet6() argument
1322 .sin6_scope_id = scopeid, in fill_sockaddr_inet6()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_table_algo.c3912 uint32_t scopeid; in ta_dump_kfib_tentry_int() local
3917 rt_get_inet_prefix_plen(rt, &tent->k.addr, &plen, &scopeid); in ta_dump_kfib_tentry_int()
3925 rt_get_inet6_prefix_plen(rt, &tent->k.addr6, &plen, &scopeid); in ta_dump_kfib_tentry_int()
/f-stack/freebsd/netpfil/pf/
H A Dpf.c3260 uint32_t scopeid; in pf_calc_mss() local
3279 in6_splitscope(&addr->v6, &dst6, &scopeid); in pf_calc_mss()
3280 nh = fib6_lookup(rtableid, &dst6, scopeid, 0, 0); in pf_calc_mss()