| /freebsd/sys/net/route/ |
| H A D | route_rtentry.c | 61 V_rtzone = uma_zcreate("rtentry", sizeof(struct rtentry), in vnet_rtzone_init() 80 struct rtentry * 84 MPASS(dst->sa_len <= sizeof(((struct rtentry *)NULL)->rt_dstb)); in rt_alloc() 86 struct rtentry *rt = uma_zalloc(V_rtzone, M_NOWAIT | M_ZERO); in rt_alloc() 104 destroy_rtentry(struct rtentry *rt) in destroy_rtentry() 137 struct rtentry *rt; in destroy_rtentry_epoch() 139 rt = __containerof(ctx, struct rtentry, rt_epoch_ctx); in destroy_rtentry_epoch() 148 rt_free(struct rtentry *rt) in rt_free() 157 rt_free_immediate(struct rtentry *rt) in rt_free_immediate() 163 rt_is_host(const struct rtentry *rt) in rt_is_host() [all …]
|
| H A D | route_ctl.h | 42 struct rtentry *rc_rt; /* Target entry */ 78 int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, 101 typedef int rib_walktree_f_t(struct rtentry *, void *); 126 const struct rtentry * 131 bool rt_is_host(const struct rtentry *rt); 132 sa_family_t rt_get_family(const struct rtentry *); 133 struct nhop_object *rt_get_raw_nhop(const struct rtentry *rt); 134 void rt_get_rnd(const struct rtentry *rt, struct route_nhop_data *rnd); 135 bool rt_is_exportable(const struct rtentry *rt, struct ucred *cred); 138 void rt_get_inet_prefix_plen(const struct rtentry *rt, struct in_addr *paddr, [all …]
|
| H A D | route_var.h | 146 #define RNTORT(p) ((struct rtentry *)(p)) 148 struct rtentry { struct 182 struct rtentry *rt_chain; /* pointer to next rtentry to delete */ argument 207 void tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh); 213 int change_route(struct rib_head *rnh, struct rtentry *rt, 215 int change_route_conditional(struct rib_head *rnh, struct rtentry *rt, 218 struct rtentry *lookup_prefix(struct rib_head *rnh, 220 struct rtentry *lookup_prefix_rt(struct rib_head *rnh, const struct rtentry *rt, 222 int rib_copy_route(struct rtentry *rt, const struct route_nhop_data *rnd_src, 228 const struct rtentry *rt, const struct nhop_object *nh); [all …]
|
| H A D | route_ctl.c | 79 static int change_route_byinfo(struct rib_head *rnh, struct rtentry *rt, 83 static int add_route_flags(struct rib_head *rnh, struct rtentry *rt, 85 static int add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt, 89 static int add_route(struct rib_head *rnh, struct rtentry *rt, 91 static int delete_route(struct rib_head *rnh, struct rtentry *rt, 93 static int rt_delete_conditional(struct rib_head *rnh, struct rtentry *rt, 277 rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, void *gw_sa) in rib_match_gw() 293 match_gw_one(const struct rtentry *rt, const struct nhop_object *nh, void *_data) in match_gw_one() 311 check_info_match_nhop(const struct rt_addrinfo *info, const struct rtentry *rt, in check_info_match_nhop() 333 static struct rtentry * [all …]
|
| H A D | route_helpers.c | 475 static struct rtentry * 479 struct rtentry *rt; in get_inet_parent_prefix() 514 struct rtentry * 520 struct rtentry *rt; in rt_get_inet_parent() 547 static struct rtentry * 551 struct rtentry *rt; in get_inet6_parent_prefix() 597 struct rtentry * 603 struct rtentry *rt; in rt_get_inet6_parent() 629 rt_print_buf(const struct rtentry *rt, char *buf, size_t bufsize) in rt_print_buf()
|
| H A D | route_ddb.c | 133 struct rtentry *rt; in rt_dumpentry_ddb() 212 struct rtentry *rt; in DB_SHOW_COMMAND_FLAGS() 254 rt = (struct rtentry *)rn; in DB_SHOW_COMMAND_FLAGS()
|
| H A D | route_temporal.c | 53 expire_route(const struct rtentry *rt, const struct nhop_object *nh, void *arg) in expire_route() 124 tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh) in tmproutes_update()
|
| H A D | route_debug.h | 171 struct rtentry; 182 char *rt_print_buf(const struct rtentry *rt, char *buf, size_t bufsize);
|
| H A D | route_ifaddrs.c | 195 match_kernel_route(const struct rtentry *rt, struct nhop_object *nh) in match_kernel_route() 204 pick_kernel_route(struct rtentry *rt, void *arg) in pick_kernel_route()
|
| H A D | fib_algo.h | 76 typedef enum flm_op_result flm_dump_t(struct rtentry *rt, void *data);
|
| /freebsd/sys/netinet6/ |
| H A D | in6_fib.h | 33 struct rtentry; 41 struct rtentry *fib6_lookup_rt(uint32_t fibnum, const struct in6_addr *dst6,
|
| H A D | in6_fib.c | 289 struct rtentry * 296 struct rtentry *rt; in fib6_lookup_rt() 317 rt = (struct rtentry *)rn; in fib6_lookup_rt() 331 struct rtentry *rt; in fib6_lookup_debugnet()
|
| H A D | in6_fib_algo.c | 166 lradix6_add_route_cb(struct rtentry *rt, void *_data) in lradix6_add_route_cb() 316 radix6_add_route_cb(struct rtentry *rt, void *_data) in radix6_add_route_cb()
|
| /freebsd/sys/netinet/ |
| H A D | in_fib.h | 46 struct rtentry; 53 struct rtentry *fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid,
|
| H A D | in_fib.c | 276 struct rtentry * 283 struct rtentry *rt; in fib4_lookup_rt() 302 rt = (struct rtentry *)rn; in fib4_lookup_rt() 316 struct rtentry *rt; in fib4_lookup_debugnet()
|
| H A D | in_fib_algo.c | 196 bsearch4_add_route_cb(struct rtentry *rt, void *_data) in bsearch4_add_route_cb() 598 lradix4_add_route_cb(struct rtentry *rt, void *_data) in lradix4_add_route_cb() 732 radix4_add_route_cb(struct rtentry *rt, void *_data) in radix4_add_route_cb()
|
| H A D | in_rmx.c | 152 in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh, in in_ifadownkill()
|
| /freebsd/sys/net/ |
| H A D | route.h | 336 struct rtentry; 338 typedef int rib_filter_f_t(const struct rtentry *, const struct nhop_object *, 417 int rt_routemsg(int, struct rtentry *, struct nhop_object *, int);
|
| H A D | route.c | 83 static int rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *, 336 rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *nh, void *arg) in rt_ifdelroute() 536 int rt_print(char *buf, int buflen, struct rtentry *rt); 562 rt_print(char *buf, int buflen, struct rtentry *rt) 662 rt_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, in rt_routemsg()
|
| H A D | if_private.h | 126 struct rtentry *);
|
| H A D | rtsock.c | 202 static int sysctl_dumpentry(struct rtentry *rt, void *vw); 203 static int sysctl_dumpnhop(struct rtentry *rt, struct nhop_object *nh, 207 static void rt_getmetrics(const struct rtentry *rt, 805 rc->rc_rt = (struct rtentry *) rnh->rnh_matchaddr( in handle_rtm_get() 808 rc->rc_rt = (struct rtentry *) rnh->rnh_lookup( in handle_rtm_get() 849 rc->rc_rt = (struct rtentry *)rnh->rnh_matchaddr( in handle_rtm_get() 902 export_rtaddrs(const struct rtentry *rt, struct sockaddr *dst, in export_rtaddrs() 1324 rt_getmetrics(const struct rtentry *rt, const struct nhop_object *nh, in rt_getmetrics() 2046 rtsock_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, in rtsock_routemsg() 2245 sysctl_dumpentry(struct rtentry *rt, void *vw) in sysctl_dumpentry() [all …]
|
| /freebsd/sbin/ipf/ipftest/ |
| H A D | ip_fil.c | 19 struct rtentry; 24 struct sockaddr *, struct rtentry *); 26 struct sockaddr *, struct rtentry *); 108 struct rtentry *rt; in no_output() 119 struct rtentry *rt; in write_output()
|
| /freebsd/sys/tests/fib_lookup/ |
| H A D | fib_lookup.c | 294 struct rtentry *rt; in cmp_dst() 331 struct rtentry *rt; in cmp_dst6() 448 add_prefix(struct rtentry *rt, void *_data) in add_prefix() 632 add_prefix6(struct rtentry *rt, void *_data) in add_prefix6() 762 reduce_keys(struct rtentry *rt, void *_data) in reduce_keys()
|
| /freebsd/usr.sbin/traceroute/ |
| H A D | ifaddrlist.c | 43 struct rtentry;
|
| /freebsd/sys/contrib/dpdk_rte_lpm/ |
| H A D | dpdk_lpm.c | 140 struct rtentry *rt; in get_parent_rule() 247 add_route_cb(struct rtentry *rt, void *_data) in add_route_cb()
|