Searched refs:scopeid (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-current/sys/netinet6/
H A Din6_fib.h37 const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags,
40 uint32_t scopeid, uint32_t flags, const struct ifnet *src_if);
42 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd);
44 const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags);
46 const struct in6_addr *dst6, uint32_t scopeid);
H A Din6_fib.c111 * Assumes scope is deembedded and provided in @scopeid.
121 uint32_t scopeid, uint32_t flags, uint32_t flowid)
127 nh = dp->f(dp->arg, key, scopeid);
143 uint32_t scopeid, uint32_t flags, uint32_t flowid)
160 /* Assume scopeid is valid and embed it directly */
162 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
223 uint32_t scopeid)
241 /* Assume scopeid is valid and embed it directly */
243 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
267 uint32_t scopeid, uint32_
120 fib6_lookup(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags, uint32_t flowid) argument
142 fib6_lookup(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags, uint32_t flowid) argument
222 lookup_nhop(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid) argument
266 fib6_check_urpf(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags, const struct ifnet *src_if) argument
293 fib6_lookup_rt(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd) argument
331 fib6_lookup_debugnet(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags) argument
[all...]
H A Din6_fib_algo.c98 lradix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
107 addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
248 radix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
262 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
275 fib6_radix_lookup_nh(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid) argument
283 return (radix6_lookup(rh, key, scopeid));
H A Dscope6.c495 in6_set_unicast_scopeid(struct in6_addr *in6, uint32_t scopeid) argument
498 in6->s6_addr16[1] = htons(scopeid & 0xffff);
529 * inside @dst and zone inside @scopeid
533 uint32_t *scopeid)
540 *scopeid = zoneid;
532 in6_splitscope(const struct in6_addr *src, struct in6_addr *dst, uint32_t *scopeid) argument
H A Din6_src.c582 * Select source address based on @fibnum, @dst and @scopeid.
590 uint32_t scopeid, struct ifnet *ifp, struct in6_addr *srcp,
602 dst_sa.sin6_scope_id = scopeid;
632 uint32_t scopeid = 0; local
634 in6_splitscope(&dst->sin6_addr, &unscoped_addr, &scopeid);
638 ro->ro_nh = fib6_lookup(fibnum, paddr, scopeid, NHR_REF, flowid);
852 uint32_t fibnum, scopeid; local
856 in6_splitscope(&inp->in6p_faddr, &dst, &scopeid);
857 nh = fib6_lookup(fibnum, &dst, scopeid, 0, 0);
589 in6_selectsrc_addr(uint32_t fibnum, const struct in6_addr *dst, uint32_t scopeid, struct ifnet *ifp, struct in6_addr *srcp, int *hlim) argument
H A Dnd6_nbr.c495 uint32_t scopeid; local
497 in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid);
499 scopeid, ifp, &src6, NULL);
984 uint32_t scopeid; local
1043 in6_splitscope(&daddr6, &dst6, &scopeid);
1045 scopeid, ifp, &src6, NULL);
H A Dip6_output.c741 uint32_t scopeid; local
759 in6_splitscope(&dst_sa.sin6_addr, &kdst, &scopeid);
763 if (scopeid > 0) {
764 ifp = in6_getlinkifnet(scopeid);
775 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE,
1469 uint32_t scopeid; local
1472 in6_splitscope(dst, &kdst, &scopeid);
1475 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, 0);
1502 uint32_t scopeid; local
1528 in6_splitscope(dst, &kdst, &scopeid);
[all...]
/freebsd-current/sys/netinet/
H A Din_fib.h50 uint32_t scopeid, uint32_t flags, uint32_t flowid);
51 int fib4_check_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid,
53 struct rtentry *fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid,
56 uint32_t scopeid, uint32_t flags);
H A Din_fib.c112 fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, argument
119 nh = dp->f(dp->arg, key, scopeid);
134 fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, argument
213 lookup_nhop(uint32_t fibnum, struct in_addr dst, uint32_t scopeid) argument
252 fib4_check_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, argument
260 nh = dp->f(dp->arg, key, scopeid);
262 nh = lookup_nhop(fibnum, dst, scopeid);
280 fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, argument
316 fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, argument
322 rt = fib4_lookup_rt(fibnum, dst, scopeid, NHR_UNLOCKE
[all...]
H A Din_fib_algo.c96 bsearch4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
202 uint32_t scopeid; local
208 rt_get_inet_prefix_pmask(rt, &addr4, &mask4, &scopeid);
527 lradix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
607 uint32_t scopeid; local
617 rt_get_inet_prefix_pmask(rt, &addr4, &mask4, &scopeid);
678 radix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
H A Din_fib_dxr.c309 const struct flm_lookup_key key, uint32_t scopeid __unused) \
355 uint32_t scopeid; local
357 rt_get_inet_prefix_plen(rt, &addr, &fhp->preflen, &scopeid);
696 uint32_t preflen, nh, start, end, scopeid; local
699 rt_get_inet_prefix_plen(rt, &addr, &preflen, &scopeid);
1081 uint32_t scopeid)
1080 dxr_fib_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
/freebsd-current/sys/contrib/dpdk_rte_lpm/
H A Ddpdk_lpm6.c81 uint32_t scopeid)
87 return (fib6_radix_lookup_nh(rte_ext->fibnum, dst6, scopeid));
94 lookup_ptr(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
120 return (lookup_ptr_ll(lpm6, addr6, scopeid));
161 const struct in6_addr addr6, int plen, uint32_t scopeid)
180 uint32_t nhop_idx, scopeid; local
182 rt_get_inet6_prefix_plen(rt, &new_addr6, &plen, &scopeid);
252 uint32_t scopeid; local
255 rt_get_inet6_prefix_plen(rc->rc_rt, &addr6, &plen, &scopeid);
258 ret = handle_ll_change(dd, rc, addr6, plen, scopeid);
80 lookup_ptr_ll(const struct rte_lpm6 *lpm6, const struct in6_addr *dst6, uint32_t scopeid) argument
160 handle_ll_change(struct dpdk_lpm6_data *dd, struct rib_cmd_info *rc, const struct in6_addr addr6, int plen, uint32_t scopeid) argument
303 uint32_t scopeid; local
[all...]
H A Ddpdk_lpm.c79 lookup_ptr(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) argument
145 uint32_t scopeid; local
148 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid);
220 uint32_t scopeid; local
224 rt_get_inet_prefix_plen(rc->rc_rt, &addr4, &plen, &scopeid);
253 uint32_t scopeid; local
256 rt_get_inet_prefix_plen(rt, &addr4, &plen, &scopeid);
/freebsd-current/tests/atf_python/sys/net/
H A Dtools.py94 # inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
96 scopeid = int(words[words.index("scopeid") + 1], 16)
97 ips.append((ip, scopeid))
H A Drtsock.py198 def ip_sa(ip: str, scopeid: int = 0) -> bytes:
200 return SaHelper.ip6_sa(ip, scopeid)
211 def ip6_sa(ip6: str, scopeid: int) -> bytes:
216 sizeof(SockaddrIn6), socket.AF_INET6, 0, 0, addr_bytes, scopeid
265 scopeid = struct.unpack(">I", sa[24:28])[0]
266 return "{} scopeid {}".format(addr, scopeid)
361 def add_ip_attr(self, attr_type, ip_addr: str, scopeid: int = 0):
363 self.add_ip6_attr(attr_type, ip_addr, scopeid)
370 def add_ip6_attr(self, attr_type, ip6: str, scopeid
[all...]
/freebsd-current/sys/net/route/
H A Dfib_algo.h58 uint32_t scopeid; member in struct:fib_change_entry
72 const struct flm_lookup_key key, uint32_t scopeid);
H A Droute_helpers.c483 uint32_t scopeid; local
491 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid);
505 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid);
555 uint32_t scopeid; local
563 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid);
577 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid);
635 uint32_t scopeid; local
644 rt_get_inet_prefix_plen(rt, &addr4, &plen, &scopeid);
654 rt_get_inet6_prefix_plen(rt, &addr6, &plen, &scopeid);
/freebsd-current/tests/sys/netinet6/
H A Dtest_ip6_output.py245 scopeid = socket.if_nametoindex(os_ifname)
249 target = (ip, self.DEFAULT_PORT, 0, scopeid)
250 print("## TX packet to {}%{},{}".format(ip, scopeid, target[1]))
283 scopeid = socket.if_nametoindex(os_ifname)
284 sin6_next = SaHelper.ip6_sa(ip_next, scopeid)
368 scopeid = socket.if_nametoindex(os_ifname)
369 target = (dst_ip, self.DEFAULT_PORT, 0, scopeid)
378 scopeid = socket.if_nametoindex(os_ifname)
379 src = (src_ip, self.DEFAULT_PORT, 0, scopeid)
/freebsd-current/sys/tests/fib_lookup/
H A Dfib_lookup.c308 uint32_t scopeid; local
316 rt_get_inet_prefix_plen(rt, &dst, &plen, &scopeid);
345 uint32_t scopeid; local
353 rt_get_inet6_prefix_plen(rt, &dst, &plen, &scopeid);
453 uint32_t scopeid, haddr; local
463 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid);
637 uint32_t scopeid; local
647 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid);
766 uint32_t scopeid; local
769 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid);
[all...]
/freebsd-current/sys/netgraph/netflow/
H A Dnetflow.c358 uint32_t scopeid; local
362 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid);
382 uint32_t scopeid; local
385 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid);
436 uint32_t scopeid; local
440 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid);
456 uint32_t scopeid; local
459 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid);
/freebsd-current/sbin/ifconfig/
H A Daf_inet6.c343 printf(" scopeid 0x%x",
386 uint32_t scopeid; local
390 scopeid = satosin6(ifa->ifa_address)->sin6_scope_id;
393 scopeid = satosin6(ifa->ifa_local)->sin6_scope_id;
401 if (scopeid != 0)
402 printf(" scopeid 0x%x", scopeid);
/freebsd-current/usr.sbin/ppp/
H A Dncpaddr.c889 int scopeid = -1; local
894 if ((scopeid = ntohs(*(const u_short *)&sin6->s6_addr[2])) == 0)
895 scopeid = -1;
898 return scopeid;
H A Diface.c769 int scopeid, width; local
816 if ((scopeid = ncprange_scopeid(&iface->addr[f].ifa)) != -1)
817 prompt_Printf(arg->prompt, " scopeid 0x%x", (unsigned)scopeid);
/freebsd-current/lib/libc/net/
H A Dgetaddrinfo.c1368 u_int32_t scopeid;
1374 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) {
1380 sin6->sin6_scope_id = scopeid;
1685 ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid) argument
1693 /* empty scopeid portion is invalid */
1704 *scopeid = if_nametoindex(scope);
1705 if (*scopeid == 0)
1722 *scopeid = (u_int32_t)(lscopeid & 0xffffffffUL);
1723 if (errno == 0 && ep && *ep == '\0' && *scopeid == lscopeid)
/freebsd-current/sys/netlink/route/
H A Drt.c296 uint32_t scopeid; local
303 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid);
312 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid);

Completed in 320 milliseconds

12