/freebsd/sys/netinet6/ |
H A D | in6_fib.c | 121 uint32_t scopeid, uint32_t flags, uint32_t flowid) in fib6_lookup() argument 127 nh = dp->f(dp->arg, key, scopeid); in fib6_lookup() 143 uint32_t scopeid, uint32_t flags, uint32_t flowid) in fib6_lookup() argument 162 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in fib6_lookup() 223 uint32_t scopeid) in lookup_nhop() argument 243 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lookup_nhop() 267 uint32_t scopeid, uint32_t flags, const struct ifnet *src_if) in fib6_check_urpf() argument 274 nh = dp->f(dp->arg, key, scopeid); in fib6_check_urpf() 276 nh = lookup_nhop(fibnum, dst6, scopeid); in fib6_check_urpf() 294 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd) in fib6_lookup_rt() argument [all …]
|
H A D | in6_fib.h | 37 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 D | in6_fib_algo.c | 98 lradix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in lradix6_lookup() argument 107 addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in lradix6_lookup() 248 radix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in radix6_lookup() argument 262 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); in radix6_lookup() 275 fib6_radix_lookup_nh(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid) in fib6_radix_lookup_nh() argument 283 return (radix6_lookup(rh, key, scopeid)); in fib6_radix_lookup_nh()
|
H A D | in6_src.c | 590 uint32_t scopeid, struct ifnet *ifp, struct in6_addr *srcp, in in6_selectsrc_addr() argument 602 dst_sa.sin6_scope_id = scopeid; in in6_selectsrc_addr() 632 uint32_t scopeid = 0; in cache_route() local 634 in6_splitscope(&dst->sin6_addr, &unscoped_addr, &scopeid); in cache_route() 638 ro->ro_nh = fib6_lookup(fibnum, paddr, scopeid, NHR_REF, flowid); in cache_route() 852 uint32_t fibnum, scopeid; in in6_selecthlim() local 856 in6_splitscope(&inp->in6p_faddr, &dst, &scopeid); in in6_selecthlim() 857 nh = fib6_lookup(fibnum, &dst, scopeid, 0, 0); in in6_selecthlim()
|
H A D | scope6.c | 495 in6_set_unicast_scopeid(struct in6_addr *in6, uint32_t scopeid) in in6_set_unicast_scopeid() argument 498 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_set_unicast_scopeid() 533 uint32_t *scopeid) in in6_splitscope() argument 540 *scopeid = zoneid; in in6_splitscope()
|
H A D | nd6_nbr.c | 495 uint32_t scopeid; in nd6_ns_output_fib() local 497 in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); in nd6_ns_output_fib() 499 scopeid, ifp, &src6, NULL); in nd6_ns_output_fib() 984 uint32_t scopeid; in nd6_na_output_fib() local 1043 in6_splitscope(&daddr6, &dst6, &scopeid); in nd6_na_output_fib() 1045 scopeid, ifp, &src6, NULL); in nd6_na_output_fib()
|
H A D | ip6_output.c | 720 uint32_t scopeid; in ip6_output() 738 in6_splitscope(&dst_sa.sin6_addr, &kdst, &scopeid); in ip6_output() 742 if (scopeid > 0) { in ip6_output() 743 ifp = in6_getlinkifnet(scopeid); in ip6_output() 754 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, in ip6_output() 1469 uint32_t scopeid; in ip6_getpmtu_ctl() local 1472 in6_splitscope(dst, &kdst, &scopeid); in ip6_getpmtu_ctl() 1475 nh = fib6_lookup(fibnum, &kdst, scopeid, NHR_NONE, 0); in ip6_getpmtu_ctl() 1502 uint32_t scopeid; in ip6_getpmtu() local 1528 in6_splitscope(dst, &kdst, &scopeid); in ip6_getpmtu() 741 uint32_t scopeid; ip6_output() local [all...] |
/freebsd/sys/netinet/ |
H A D | in_fib.c | 112 fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup() argument 119 nh = dp->f(dp->arg, key, scopeid); in fib4_lookup() 134 fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup() argument 213 lookup_nhop(uint32_t fibnum, struct in_addr dst, uint32_t scopeid) in lookup_nhop() argument 252 fib4_check_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_check_urpf() argument 260 nh = dp->f(dp->arg, key, scopeid); in fib4_check_urpf() 262 nh = lookup_nhop(fibnum, dst, scopeid); in fib4_check_urpf() 280 fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup_rt() argument 316 fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, in fib4_lookup_debugnet() argument 322 rt = fib4_lookup_rt(fibnum, dst, scopeid, NHR_UNLOCKED, &rnd); in fib4_lookup_debugnet()
|
H A D | in_fib.h | 50 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 D | in_fib_algo.c | 96 bsearch4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in bsearch4_lookup() argument 202 uint32_t scopeid; in bsearch4_add_route_cb() local 208 rt_get_inet_prefix_pmask(rt, &addr4, &mask4, &scopeid); in bsearch4_add_route_cb() 527 lradix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in lradix4_lookup() argument 607 uint32_t scopeid; in lradix4_add_route_cb() local 617 rt_get_inet_prefix_pmask(rt, &addr4, &mask4, &scopeid); in lradix4_add_route_cb() 678 radix4_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in radix4_lookup() argument
|
H A D | in_fib_dxr.c | 309 const struct flm_lookup_key key, uint32_t scopeid __unused) \ 355 uint32_t scopeid; in initheap() 357 rt_get_inet_prefix_plen(rt, &addr, &fhp->preflen, &scopeid); in initheap() 696 uint32_t preflen, nh, start, end, scopeid; 699 rt_get_inet_prefix_plen(rt, &addr, &preflen, &scopeid); in dxr_walk() 1081 uint32_t scopeid) in dxr_build() 366 uint32_t scopeid; initheap() local 707 uint32_t preflen, nh, start, end, scopeid; dxr_walk() local 1106 dxr_fib_lookup(void * algo_data,const struct flm_lookup_key key,uint32_t scopeid) dxr_fib_lookup() argument
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | dpdk_lpm6.c | 81 uint32_t scopeid) in lookup_ptr_ll() argument 87 return (fib6_radix_lookup_nh(rte_ext->fibnum, dst6, scopeid)); in lookup_ptr_ll() 94 lookup_ptr(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) in lookup_ptr() argument 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() [all …]
|
H A D | dpdk_lpm.c | 79 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/sys/net/route/ |
H A D | route_helpers.c | 483 uint32_t scopeid; in get_inet_parent_prefix() local 491 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid); in get_inet_parent_prefix() 505 rt_get_inet_prefix_plen(rt, &addr4, &parent_plen, &scopeid); in get_inet_parent_prefix() 555 uint32_t scopeid; in get_inet6_parent_prefix() local 563 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix() 577 rt_get_inet6_prefix_plen(rt, &addr6, &parent_plen, &scopeid); in get_inet6_parent_prefix() 635 uint32_t scopeid; in rt_print_buf() local 644 rt_get_inet_prefix_plen(rt, &addr4, &plen, &scopeid); in rt_print_buf() 654 rt_get_inet6_prefix_plen(rt, &addr6, &plen, &scopeid); in rt_print_buf()
|
H A D | fib_algo.h | 58 uint32_t scopeid; member 72 const struct flm_lookup_key key, uint32_t scopeid);
|
/freebsd/tests/atf_python/sys/net/ |
H A D | rtsock.py | 198 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: int): 371 self.add_sa_attr(attr_type, self.sa.ip6_sa(ip6, scopeid))
|
H A D | tools.py | 96 scopeid = int(words[words.index("scopeid") + 1], 16) 97 ips.append((ip, scopeid))
|
/freebsd/tests/sys/netinet6/ |
H A D | test_ip6_output.py | 245 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/sys/tests/fib_lookup/ |
H A D | fib_lookup.c | 308 uint32_t scopeid; in cmp_dst() local 316 rt_get_inet_prefix_plen(rt, &dst, &plen, &scopeid); in cmp_dst() 345 uint32_t scopeid; in cmp_dst6() local 353 rt_get_inet6_prefix_plen(rt, &dst, &plen, &scopeid); in cmp_dst6() 453 uint32_t scopeid, haddr; in add_prefix() local 463 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in add_prefix() 637 uint32_t scopeid; in add_prefix6() local 647 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in add_prefix6() 766 uint32_t scopeid; in reduce_keys() local 769 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in reduce_keys()
|
/freebsd/sys/netgraph/netflow/ |
H A D | netflow.c | 358 uint32_t scopeid; in hash_insert() local 362 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in hash_insert() 382 uint32_t scopeid; in hash_insert() local 385 rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid); in hash_insert() 436 uint32_t scopeid; in hash6_insert() local 440 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in hash6_insert() 456 uint32_t scopeid; in hash6_insert() local 459 rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid); in hash6_insert()
|
/freebsd/sbin/ifconfig/ |
H A D | af_inet6.c | 386 uint32_t scopeid; in in6_status_nl() local 390 scopeid = satosin6(ifa->ifa_address)->sin6_scope_id; in in6_status_nl() 393 scopeid = satosin6(ifa->ifa_local)->sin6_scope_id; in in6_status_nl() 401 if (scopeid != 0) in in6_status_nl() 402 printf(" scopeid 0x%x", scopeid); in in6_status_nl()
|
/freebsd/usr.sbin/ppp/ |
H A D | ncpaddr.c | 889 int scopeid = -1; in ncprange_scopeid() local 894 if ((scopeid = ntohs(*(const u_short *)&sin6->s6_addr[2])) == 0) in ncprange_scopeid() 895 scopeid = -1; in ncprange_scopeid() 898 return scopeid; in ncprange_scopeid()
|
H A D | iface.c | 747 int scopeid, width; in iface_Show() local 794 if ((scopeid = ncprange_scopeid(&iface->addr[f].ifa)) != -1) in iface_Show() 795 prompt_Printf(arg->prompt, " scopeid 0x%x", (unsigned)scopeid); in iface_Show()
|
/freebsd/lib/libc/net/ |
H A D | getaddrinfo.c | 1368 u_int32_t scopeid; in explore_numeric_scope() 1374 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope() 1380 sin6->sin6_scope_id = scopeid; in explore_numeric_scope() 1685 ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid) in ip6_str2scopeid() argument 1704 *scopeid = if_nametoindex(scope); in ip6_str2scopeid() 1705 if (*scopeid == 0) in ip6_str2scopeid() 1722 *scopeid = (u_int32_t)(lscopeid & 0xffffffffUL); in ip6_str2scopeid() 1723 if (errno == 0 && ep && *ep == '\0' && *scopeid == lscopeid) in ip6_str2scopeid()
|
/freebsd/sys/net/ |
H A D | rtsock.c | 877 uint32_t scopeid = 0; in export_rtaddrs() local 879 &scopeid); in export_rtaddrs() 887 uint32_t scopeid = 0; in export_rtaddrs() local 889 &mask6->sin6_addr, &scopeid); in export_rtaddrs() 890 dst6->sin6_scope_id = scopeid; in export_rtaddrs() 1372 uint32_t scopeid) in fill_sockaddr_inet6() argument 1379 .sin6_scope_id = scopeid, in fill_sockaddr_inet6()
|