/freebsd-11-stable/sys/netinet/ |
H A D | in_fib.h | 54 int fib4_lookup_nh_basic(uint32_t fibnum, struct in_addr dst, uint32_t flags, 56 int fib4_lookup_nh_ext(uint32_t fibnum, struct in_addr dst, uint32_t flags, 58 void fib4_free_nh_ext(uint32_t fibnum, struct nhop4_extended *pnh4);
|
H A D | in_fib.c | 134 fib4_lookup_nh_basic(uint32_t fibnum, struct in_addr dst, uint32_t flags, argument 142 KASSERT((fibnum < rt_numfibs), ("fib4_lookup_nh_basic: bad fibnum")); 143 rh = rt_tables_get_rnh(fibnum, AF_INET); 182 fib4_lookup_nh_ext(uint32_t fibnum, struct in_addr dst, uint32_t flags, argument 190 KASSERT((fibnum < rt_numfibs), ("fib4_lookup_nh_ext: bad fibnum")); 191 rh = rt_tables_get_rnh(fibnum, AF_INET); 228 fib4_free_nh_ext(uint32_t fibnum, struct nhop4_extended *pnh4) argument
|
H A D | in_rmx.c | 190 in_rtalloc_ign(struct route *ro, u_long ignflags, u_int fibnum) argument 192 rtalloc_ign_fib(ro, ignflags, fibnum); 201 u_int fibnum) 203 rtredirect_fib(dst, gateway, netmask, flags, src, fibnum); 196 in_rtredirect(struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct sockaddr *src, u_int fibnum) argument
|
H A D | ip_output.c | 106 struct sockaddr_in *dst, int *fibnum, int *error) 156 if ((*fibnum) != M_GETFIB(m)) { 158 *fibnum = M_GETFIB(m); 225 uint32_t fibnum; local 280 fibnum = (inp != NULL) ? inp->inp_inc.inc_fibnum : M_GETFIB(m); 294 RT_VALIDATE(ro, &inp->inp_rt_cookie, fibnum); 372 fibnum); 374 in_rtalloc_ign(ro, 0, fibnum); 575 switch (ip_output_pfil(&m, ifp, inp, dst, &fibnum, &error)) { 105 ip_output_pfil(struct mbuf **mp, struct ifnet *ifp, struct inpcb *inp, struct sockaddr_in *dst, int *fibnum, int *error) argument
|
H A D | ip_icmp.c | 401 int fibnum; local 689 for ( fibnum = 0; fibnum < rt_numfibs; fibnum++) { 693 (struct sockaddr *)&icmpgw, fibnum);
|
H A D | in.c | 714 int fibnum; local 716 fibnum = V_rt_add_addr_allfibs ? RT_ALL_FIBS : 718 rt_addrmsg(RTM_ADD, &target->ia_ifa, fibnum); 822 int fibnum; local 824 fibnum = V_rt_add_addr_allfibs ? RT_ALL_FIBS : 826 rt_addrmsg(RTM_DELETE, &target->ia_ifa, fibnum);
|
H A D | sctp_os_bsd.h | 404 #define SCTP_RTALLOC(ro, vrf_id, fibnum) \ 405 rtalloc_ign_fib((struct route *)ro, 0UL, fibnum)
|
H A D | in_var.h | 391 void in_rtalloc_ign(struct route *ro, u_long ignflags, u_int fibnum);
|
/freebsd-11-stable/sys/netinet6/ |
H A D | in6_fib.h | 54 int fib6_lookup_nh_basic(uint32_t fibnum, const struct in6_addr *dst, 56 int fib6_lookup_nh_ext(uint32_t fibnum, const struct in6_addr *dst, 59 void fib6_free_nh_ext(uint32_t fibnum, struct nhop6_extended *pnh6);
|
H A D | in6_rmx.c | 251 int flags, struct sockaddr *src, u_int fibnum) 254 rtredirect_fib(dst, gw, nm, flags, src, fibnum); 259 struct sockaddr *mask, int flags, struct rtentry **ret_nrt, u_int fibnum) 262 return (rtrequest_fib(req, dst, gw, mask, flags, ret_nrt, fibnum)); 266 in6_rtalloc(struct route_in6 *ro, u_int fibnum) argument 269 rtalloc_ign_fib((struct route *)ro, 0ul, fibnum); 273 in6_rtalloc_ign(struct route_in6 *ro, u_long ignflags, u_int fibnum) argument 276 rtalloc_ign_fib((struct route *)ro, ignflags, fibnum); 280 in6_rtalloc1(struct sockaddr *dst, int report, u_long ignflags, u_int fibnum) argument 283 return (rtalloc1_fib(dst, report, ignflags, fibnum)); 250 in6_rtredirect(struct sockaddr *dst, struct sockaddr *gw, struct sockaddr *nm, int flags, struct sockaddr *src, u_int fibnum) argument 258 in6_rtrequest(int req, struct sockaddr *dst, struct sockaddr *gw, struct sockaddr *mask, int flags, struct rtentry **ret_nrt, u_int fibnum) argument [all...] |
H A D | in6_fib.c | 171 fib6_lookup_nh_basic(uint32_t fibnum, const struct in6_addr *dst, uint32_t scopeid, argument 179 KASSERT((fibnum < rt_numfibs), ("fib6_lookup_nh_basic: bad fibnum")); 180 rh = rt_tables_get_rnh(fibnum, AF_INET6); 220 fib6_lookup_nh_ext(uint32_t fibnum, const struct in6_addr *dst,uint32_t scopeid, argument 228 KASSERT((fibnum < rt_numfibs), ("fib6_lookup_nh_ext: bad fibnum")); 229 rh = rt_tables_get_rnh(fibnum, AF_INET6); 270 fib6_free_nh_ext(uint32_t fibnum, struct nhop6_extended *pnh6) argument
|
H A D | in6_src.c | 182 in6_selectsrc(uint32_t fibnum, struct sockaddr_in6 *dstsock, argument 231 fibnum)) 300 (inp != NULL) ? inp->inp_inc.inc_fibnum : fibnum)) != 0) 563 uint32_t fibnum; local 566 fibnum = inp->inp_inc.inc_fibnum; 569 error = in6_selectsrc(fibnum, dstsock, opts, inp, cred, &retifp, srcp); 593 * Select source address based on @fibnum, @dst and @scopeid. 600 in6_selectsrc_addr(uint32_t fibnum, const struct in6_addr *dst, argument 616 error = in6_selectsrc(fibnum, &dst_sa, NULL, NULL, NULL, &retifp, srcp); 629 struct ifnet **retifp, struct rtentry **retrt, int norouteok, u_int fibnum) 627 selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, struct ip6_moptions *mopts, struct route_in6 *ro, struct ifnet **retifp, struct rtentry **retrt, int norouteok, u_int fibnum) argument 843 in6_selectif(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, struct ip6_moptions *mopts, struct ifnet **retifp, struct ifnet *oifp, u_int fibnum) argument 917 in6_selectroute_fib(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, struct ip6_moptions *mopts, struct route_in6 *ro, struct ifnet **retifp, struct rtentry **retrt, u_int fibnum) argument 945 uint32_t fibnum, scopeid; local [all...] |
H A D | nd6_rtr.c | 746 * at a time based on the receiving interface's FIB. If @fibnum is RT_ALL_FIBS, 750 defrouter_select_fib(int fibnum) argument 755 if (fibnum == RT_ALL_FIBS) { 756 for (fibnum = 0; fibnum < rt_numfibs; fibnum++) { 757 defrouter_select_fib(fibnum); 779 if (selected_dr == NULL && dr->ifp->if_fib == fibnum && 791 if (dr->installed && dr->ifp->if_fib == fibnum) { 822 if (dr->ifp->if_fib == fibnum) { 1780 int error, a_failure, fibnum, maxfib; local 1951 int fibnum, maxfib, a_failure; local [all...] |
H A D | nd6.c | 160 int fibnum; local 198 fibnum = V_rt_add_addr_allfibs ? RT_ALL_FIBS : ifp->if_fib; 200 type == RTM_ADD ? RTF_UP: 0), 0, fibnum); 1263 int error, fibnum; local 1311 fibnum = V_rt_add_addr_allfibs ? rt_numfibs - 1 : 0; 1312 for (; fibnum < rt_numfibs; fibnum++) { 1321 error = rib_lookup_info(fibnum, dst6, 0, 0, 1579 int fibnum; local 1588 for (fibnum [all...] |
H A D | sctp6_usrreq.c | 75 uint16_t fibnum; local 101 fibnum = M_GETFIB(m); 156 mflowtype, mflowid, fibnum, 242 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu + sizeof(struct udphdr)); 244 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu);
|
H A D | ip6_output.c | 359 uint32_t fibnum; local 555 fibnum = (inp != NULL) ? inp->inp_inc.inc_fibnum : M_GETFIB(m); 589 RT_VALIDATE((struct route *)ro, &inp->inp_rt_cookie, fibnum); 607 &rt, fibnum); 783 &mtu, &alwaysfrag, fibnum, *nexthdrp)) != 0) 891 if (fibnum != M_GETFIB(m)) { 893 fibnum = M_GETFIB(m); 1289 ip6_getpmtu_ctl(u_int fibnum, const struct in6_addr *dst, u_long *mtup) argument 1299 if (fib6_lookup_nh_ext(fibnum, &kdst, scopeid, NHR_REF, 0, &nh6) != 0) 1306 fib6_free_nh_ext(fibnum, 1322 ip6_getpmtu(struct route_in6 *ro_pmtu, int do_lookup, struct ifnet *ifp, const struct in6_addr *dst, u_long *mtup, int *alwaysfragp, u_int fibnum, u_int proto) argument [all...] |
H A D | nd6_nbr.c | 402 uint8_t *nonce, u_int fibnum) 429 M_SETFIB(m, fibnum); 491 error = in6_selectsrc_addr(fibnum, &dst6, 932 struct sockaddr *sdl0, u_int fibnum) 960 M_SETFIB(m, fibnum); 998 error = in6_selectsrc_addr(fibnum, &dst6, 400 nd6_ns_output_fib(struct ifnet *ifp, const struct in6_addr *saddr6, const struct in6_addr *daddr6, const struct in6_addr *taddr6, uint8_t *nonce, u_int fibnum) argument 930 nd6_na_output_fib(struct ifnet *ifp, const struct in6_addr *daddr6_0, const struct in6_addr *taddr6, u_long flags, int tlladdr, struct sockaddr *sdl0, u_int fibnum) argument
|
/freebsd-11-stable/sys/net/ |
H A D | route.c | 168 int fibnum; local 171 fibnum = curthread->td_proc->p_fibnum; 172 error = sysctl_handle_int(oidp, &fibnum, 0, req); 394 int fibnum; member in struct:setfib_args 400 if (uap->fibnum < 0 || uap->fibnum >= rt_numfibs) 402 td->td_proc->p_fibnum = uap->fibnum; 410 rtalloc_ign_fib(struct route *ro, u_long ignore, u_int fibnum) argument 420 ro->ro_rt = rtalloc1_fib(&ro->ro_dst, 1, ignore, fibnum); 440 u_int fibnum) 439 rtalloc1_fib(struct sockaddr *dst, int report, u_long ignflags, u_int fibnum) argument 581 rtredirect_fib(struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct sockaddr *src, u_int fibnum) argument 708 rtioctl_fib(u_long req, caddr_t data, u_int fibnum) argument 726 ifa_ifwithroute(int flags, const struct sockaddr *dst, struct sockaddr *gateway, u_int fibnum) argument 802 rtrequest_fib(int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, u_int fibnum) argument 923 rib_lookup_info(uint32_t fibnum, const struct sockaddr *dst, uint32_t flags, uint32_t flowid, struct rt_addrinfo *info) argument 977 uint32_t fibnum; local 1063 uint32_t fibnum; local 1276 rt_getifa_fib(struct rt_addrinfo *info, u_int fibnum) argument 1572 rtrequest1_fib(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt, u_int fibnum) argument 1809 rtrequest1_fib_change(struct rib_head *rnh, struct rt_addrinfo *info, struct rtentry **ret_nrt, u_int fibnum) argument 2013 rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum) argument 2249 rt_addrmsg(int cmd, struct ifaddr *ifa, int fibnum) argument 2282 rt_routemsg(int cmd, struct ifnet *ifp, int error, struct rtentry *rt, int fibnum) argument 2309 rt_newaddrmsg_fib(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt, int fibnum) argument [all...] |
H A D | flowtable.c | 191 uint32_t fibnum; local 206 fibnum = M_GETFIB(m); 220 fibnum |= (FL_STALE << 24); 248 fibnum |= proto << 16; 251 fibnum); 256 sizeof(struct in_addr), fibnum); 297 uint32_t fibnum; local 313 fibnum = M_GETFIB(m); 335 fibnum |= (FL_STALE << 24); 389 fibnum | 467 flow_matches(struct flentry *fle, uint32_t *key, int keylen, uint32_t fibnum) argument 512 uint16_t fibnum = fibnum0; local 706 flowtable_lookup_common(struct flowtable *ft, uint32_t *key, int keylen, uint32_t fibnum) argument [all...] |
H A D | route.h | 113 #define RT_GEN(fibnum, af) rt_tables_get_gen(fibnum, af) 422 #define RT_VALIDATE(ro, cookiep, fibnum) do { \ 423 rt_gen_t cookie = RT_GEN(fibnum, (ro)->ro_dst.sa_family); \ 484 int rt_getifa_fib(struct rt_addrinfo *, u_int fibnum); 485 void rtalloc_ign_fib(struct route *ro, u_long ignflags, u_int fibnum);
|
H A D | rtsock.c | 234 int fibnum; local 245 fibnum = M_GETFIB(m); 248 rp->rcb_socket->so_fibnum == fibnum) 555 int alloc_len = 0, len, error = 0, fibnum; local 562 fibnum = so->so_fibnum; 662 if (rib_lookup_info(fibnum, gdst, NHR_REF, 0, &ginfo) == 0) { 692 fibnum); 717 error = rtrequest1_fib(RTM_DELETE, &info, &saved_nrt, fibnum); 730 rnh = rt_tables_get_rnh(fibnum, saf); 929 M_SETFIB(m, fibnum); 1246 rt_missmsg_fib(int type, struct rt_addrinfo *rtinfo, int flags, int error, int fibnum) argument 1312 rtsock_addrmsg(int cmd, struct ifaddr *ifa, int fibnum) argument 1363 rtsock_routemsg(int cmd, struct ifnet *ifp, int error, struct rtentry *rt, int fibnum) argument [all...] |
H A D | radix_mpath.c | 248 rtalloc_mpath_fib(struct route *ro, uint32_t hash, u_int fibnum) argument 259 ro->ro_rt = rtalloc1_fib(&ro->ro_dst, 1, 0, fibnum);
|
H A D | if_ipsec.c | 97 u_int fibnum; member in struct:ipsec_softc 176 sc->fibnum = curthread->td_proc->p_fibnum; 339 M_SETFIB(m, sc->fibnum); 680 ifr->ifr_fib = sc->fibnum; 688 sc->fibnum = ifr->ifr_fib;
|
/freebsd-11-stable/usr.bin/netstat/ |
H A D | route.c | 124 routepr(int fibnum, int af) argument 133 if (fibnum == -1 && 134 sysctlbyname("net.my_fibnum", &fibnum, &intsize, NULL, 0) == -1) 135 fibnum = 0; 138 if (fibnum < 0 || fibnum > numfibs - 1) 139 errx(EX_USAGE, "%d: invalid fib", fibnum); 150 if (fibnum) 151 xo_emit(" ({L:fib}: {:fib/%d})", fibnum); 153 p_rtable_sysctl(fibnum, a 244 p_rtable_sysctl(int fibnum, int af) argument [all...] |
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_dynamic.c | 136 uint16_t fibnum; /* fib used to send keepalives */ member in struct:dyn_data 1486 uint32_t hashval, uint16_t fibnum) 1504 data->fibnum = fibnum; 1594 uint32_t hashval, struct ipfw_dyn_info *info, uint16_t fibnum, 1619 pktlen, hashval, fibnum); 1726 uint16_t fibnum, uint16_t kidx, uint8_t type) 1750 pktlen, hashval, fibnum); 1866 uint16_t fibnum, const void *ulp, int pktlen, struct ip_fw *rule, 1882 id.fib = fibnum; /* unuse 1484 dyn_alloc_dyndata(void *parent, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, const void *ulp, int pktlen, uint32_t hashval, uint16_t fibnum) argument 1592 dyn_add_ipv4_state(void *parent, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, const void *ulp, int pktlen, uint32_t hashval, struct ipfw_dyn_info *info, uint16_t fibnum, uint16_t kidx, uint8_t type) argument 1723 dyn_add_ipv6_state(void *parent, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, uint32_t zoneid, const void *ulp, int pktlen, uint32_t hashval, struct ipfw_dyn_info *info, uint16_t fibnum, uint16_t kidx, uint8_t type) argument 1865 dyn_install_state(const struct ipfw_flow_id *pkt, uint32_t zoneid, uint16_t fibnum, const void *ulp, int pktlen, struct ip_fw *rule, struct ipfw_dyn_info *info, uint32_t limit, uint16_t limit_mask, uint16_t kidx, uint8_t type) argument 2353 dyn_mgethdr(int len, uint16_t fibnum) argument [all...] |