| /freebsd-13-stable/sys/net/route/ |
| HD | route_rtentry.c | 63 V_rtzone = uma_zcreate("rtentry", sizeof(struct rtentry), in vnet_rtzone_init() 82 struct rtentry * 86 MPASS(dst->sa_len <= sizeof(((struct rtentry *)NULL)->rt_dstb)); in rt_alloc() 88 struct rtentry *rt = uma_zalloc(V_rtzone, M_NOWAIT | M_ZERO); in rt_alloc() 106 destroy_rtentry(struct rtentry *rt) in destroy_rtentry() 141 struct rtentry *rt; in destroy_rtentry_epoch() 143 rt = __containerof(ctx, struct rtentry, rt_epoch_ctx); in destroy_rtentry_epoch() 152 rt_free(struct rtentry *rt) in rt_free() 161 rt_free_immediate(struct rtentry *rt) in rt_free_immediate() 167 rt_is_host(const struct rtentry *rt) in rt_is_host() [all …]
|
| HD | route_ctl.h | 40 struct rtentry *rc_rt; /* Target entry */ 76 int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, 99 typedef int rib_walktree_f_t(struct rtentry *, void *); 124 const struct rtentry *rib_lookup_prefix(uint32_t fibnum, int family, 127 const struct rtentry *rib_lookup_lpm(uint32_t fibnum, int family, 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); [all …]
|
| HD | 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 …]
|
| HD | route_ctl.c | 78 static int change_route_byinfo(struct rib_head *rnh, struct rtentry *rt, 82 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, 90 static int add_route(struct rib_head *rnh, struct rtentry *rt, 92 static int delete_route(struct rib_head *rnh, struct rtentry *rt, 94 static int rt_delete_conditional(struct rib_head *rnh, struct rtentry *rt, 292 rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, void *gw_sa) in rib_match_gw() 308 match_gw_one(const struct rtentry *rt, const struct nhop_object *nh, void *_data) in match_gw_one() 326 check_info_match_nhop(const struct rt_addrinfo *info, const struct rtentry *rt, in check_info_match_nhop() 348 static struct rtentry * [all …]
|
| HD | route_helpers.c | 477 static struct rtentry * 481 struct rtentry *rt; in get_inet_parent_prefix() 516 struct rtentry * 522 struct rtentry *rt; in rt_get_inet_parent() 549 static struct rtentry * 553 struct rtentry *rt; in get_inet6_parent_prefix() 599 struct rtentry * 605 struct rtentry *rt; in rt_get_inet6_parent() 631 rt_print_buf(const struct rtentry *rt, char *buf, size_t bufsize) in rt_print_buf()
|
| HD | route_ddb.c | 132 struct rtentry *rt; in rt_dumpentry_ddb() 211 struct rtentry *rt; in DB_SHOW_COMMAND_FLAGS() 253 rt = (struct rtentry *)rn; in DB_SHOW_COMMAND_FLAGS()
|
| HD | route_temporal.c | 54 expire_route(const struct rtentry *rt, const struct nhop_object *nh, void *arg) in expire_route() 125 tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh) in tmproutes_update()
|
| HD | route_debug.h | 160 struct rtentry; 171 char *rt_print_buf(const struct rtentry *rt, char *buf, size_t bufsize);
|
| HD | route_ifaddrs.c | 198 match_kernel_route(const struct rtentry *rt, struct nhop_object *nh) in match_kernel_route() 207 pick_kernel_route(struct rtentry *rt, void *arg) in pick_kernel_route()
|
| HD | fib_algo.h | 76 typedef enum flm_op_result flm_dump_t(struct rtentry *rt, void *data);
|
| /freebsd-13-stable/sys/netinet6/ |
| HD | in6_fib.h | 33 struct rtentry; 41 struct rtentry *fib6_lookup_rt(uint32_t fibnum, const struct in6_addr *dst6,
|
| HD | in6_fib.c | 291 struct rtentry * 298 struct rtentry *rt; in fib6_lookup_rt() 319 rt = (struct rtentry *)rn; in fib6_lookup_rt() 333 struct rtentry *rt; in fib6_lookup_debugnet()
|
| HD | in6_fib_algo.c | 167 lradix6_add_route_cb(struct rtentry *rt, void *_data) in lradix6_add_route_cb() 317 radix6_add_route_cb(struct rtentry *rt, void *_data) in radix6_add_route_cb()
|
| /freebsd-13-stable/sys/netinet/ |
| HD | in_fib.h | 46 struct rtentry; 53 struct rtentry *fib4_lookup_rt(uint32_t fibnum, struct in_addr dst, uint32_t scopeid,
|
| HD | in_fib.c | 278 struct rtentry * 285 struct rtentry *rt; in fib4_lookup_rt() 304 rt = (struct rtentry *)rn; in fib4_lookup_rt() 318 struct rtentry *rt; in fib4_lookup_debugnet()
|
| HD | in_fib_algo.c | 197 bsearch4_add_route_cb(struct rtentry *rt, void *_data) in bsearch4_add_route_cb() 599 lradix4_add_route_cb(struct rtentry *rt, void *_data) in lradix4_add_route_cb() 733 radix4_add_route_cb(struct rtentry *rt, void *_data) in radix4_add_route_cb()
|
| HD | in_rmx.c | 155 in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh, in in_ifadownkill()
|
| /freebsd-13-stable/sys/net/ |
| HD | route.c | 79 static int rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *, 81 static int rt_exportinfo(struct rtentry *rt, struct nhop_object *nh, 332 rt_exportinfo(struct rtentry *rt, struct nhop_object *nh, in rt_exportinfo() 423 struct rtentry *rt; in rib_lookup_info() 479 rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *nh, void *arg) in rt_ifdelroute() 678 int rt_print(char *buf, int buflen, struct rtentry *rt); 704 rt_print(char *buf, int buflen, struct rtentry *rt) 777 rt_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, in rt_routemsg()
|
| HD | route.h | 347 struct rtentry; 349 typedef int rib_filter_f_t(const struct rtentry *, const struct nhop_object *, 429 int rt_routemsg(int, struct rtentry *, struct nhop_object *, int);
|
| HD | rtsock.c | 192 static int sysctl_dumpentry(struct rtentry *rt, void *vw); 193 static int sysctl_dumpnhop(struct rtentry *rt, struct nhop_object *nh, 198 static void rt_getmetrics(const struct rtentry *rt, 830 rc->rc_rt = (struct rtentry *) rnh->rnh_matchaddr( in handle_rtm_get() 833 rc->rc_rt = (struct rtentry *) rnh->rnh_lookup( in handle_rtm_get() 874 rc->rc_rt = (struct rtentry *)rnh->rnh_matchaddr( in handle_rtm_get() 927 export_rtaddrs(const struct rtentry *rt, struct sockaddr *dst, in export_rtaddrs() 1090 struct rtentry *rt = NULL; in route_output() 1345 rt_getmetrics(const struct rtentry *rt, const struct nhop_object *nh, in rt_getmetrics() 2061 rtsock_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, in rtsock_routemsg() [all …]
|
| /freebsd-13-stable/sbin/ipf/ipftest/ |
| HD | ip_fil.c | 23 struct rtentry; 28 struct sockaddr *, struct rtentry *); 30 struct sockaddr *, struct rtentry *); 112 struct rtentry *rt; in no_output() 123 struct rtentry *rt; in write_output()
|
| /freebsd-13-stable/sys/tests/fib_lookup/ |
| HD | 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-13-stable/sys/netlink/route/ |
| HD | rt.c | 268 const struct rtentry *rt, struct route_nhop_data *rnd, in dump_px() 507 dump_rtentry(struct rtentry *rt, void *_arg) in dump_rtentry() 579 struct rtentry *rt; in handle_rtm_getroute() 596 rt = (struct rtentry *)rnh->rnh_matchaddr(attrs->rta_dst, &rnh->head); in handle_rtm_getroute() 907 path_match_func(const struct rtentry *rt, const struct nhop_object *nh, void *_data) in path_match_func()
|
| /freebsd-13-stable/sys/contrib/dpdk_rte_lpm/ |
| HD | dpdk_lpm.c | 140 struct rtentry *rt; in get_parent_rule() 247 add_route_cb(struct rtentry *rt, void *_data) in add_route_cb()
|
| /freebsd-13-stable/contrib/traceroute/ |
| HD | ifaddrlist.c | 50 struct rtentry;
|