Home
last modified time | relevance | path

Searched refs:nhop_object (Results 1 – 25 of 80) sorted by relevance

1234

/freebsd/sys/net/route/
H A Dnhop.h121 #define NHOP_END_CMP (__offsetof(struct nhop_object, nh_pksent))
123 struct nhop_object { struct
165 struct nhop_object *nh; argument
170 void nhop_free(struct nhop_object *nh);
180 struct nhop_object *nhop_alloc(uint32_t fibnum, int family);
181 void nhop_copy(struct nhop_object *nh, const struct nhop_object *nh_orig);
182 struct nhop_object *nhop_get_nhop(struct nhop_object *nh, int *perror);
183 int nhop_get_unlinked(struct nhop_object *nh);
185 void nhop_set_direct_gw(struct nhop_object *nh, struct ifnet *ifp);
186 bool nhop_set_gw(struct nhop_object *nh, const struct sockaddr *sa, bool is_gw);
[all …]
H A Dnhop_ctl.c85 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w);
87 static int finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link);
88 static struct ifnet *get_aifp(const struct nhop_object *nh);
92 static void destroy_nhop(struct nhop_object *nh);
94 _Static_assert(__offsetof(struct nhop_object, nh_ifp) == 32,
96 _Static_assert(sizeof(struct nhop_object) <= 128,
101 #define NHOP_OBJECT_ALIGNED_SIZE roundup2(sizeof(struct nhop_object), \
125 get_aifp(const struct nhop_object *nh) in get_aifp()
172 set_nhop_mtu_from_info(struct nhop_object *nh, const struct rt_addrinfo *info) in set_nhop_mtu_from_info()
179 set_nhop_metric_from_info(struct nhop_object *nh, const struct rt_addrinfo *info) in set_nhop_metric_from_info()
[all …]
H A Droute_var.h45 const struct sockaddr *mask, struct nhop_object *nh);
47 typedef int rnh_augment_nh_f_t(u_int fibnum, struct nhop_object *nh);
165 struct nhop_object *rt_nhop; /* nexthop data */
207 void tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh);
225 bool nhop_can_multipath(const struct nhop_object *nh);
226 bool match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw);
228 const struct rtentry *rt, const struct nhop_object *nh);
250 void nhop_ref_object(struct nhop_object *nh);
251 int nhop_try_ref_object(struct nhop_object *nh);
252 void nhop_ref_any(struct nhop_object *nh);
[all …]
H A Droute_ctl.h43 struct nhop_object *rc_nh_old; /* Target nhop OR mpath */
44 struct nhop_object *rc_nh_new; /* Target nhop OR mpath */
49 struct nhop_object *rnd_nhop;
78 int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh,
122 struct nhop_object;
133 struct nhop_object *rt_get_raw_nhop(const struct rtentry *rt);
169 struct nhop_object *nhops_iter_start(struct nhop_iter *iter);
170 struct nhop_object *nhops_iter_next(struct nhop_iter *iter);
H A Dfib_algo.h60 struct nhop_object *nh_old;
61 struct nhop_object *nh_new;
71 typedef struct nhop_object *flm_lookup_t(void *algo_data,
125 uint32_t fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh);
126 struct nhop_object **fib_get_nhop_array(struct fib_data *fd);
H A Droute_ctl.c99 static int nhop_get_prio(const struct nhop_object *nh);
177 nhop_can_multipath(const struct nhop_object *nh) in nhop_can_multipath()
220 nhop_get_prio(const struct nhop_object *nh) in nhop_get_prio()
233 match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw) in match_nhop_gw()
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()
312 const struct nhop_object *nh) in check_info_match_nhop()
612 struct nhop_object __diagused *nh_src = rnd_src->rnd_nhop; in rib_copy_route()
624 struct nhop_object *nh = nhop_alloc(rh_dst->rib_fibnum, rh_dst->rib_family); in rib_copy_route()
710 struct nhop_object *nh; in add_route_byinfo()
[all …]
H A Droute_debug.h167 struct nhop_object;
175 char *nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize);
176 char *nhop_print_buf_any(const struct nhop_object *nh, char *buf, size_t bufsize);
H A Droute_ifaddrs.c74 struct nhop_object *nh; in rib_handle_ifaddr_one()
195 match_kernel_route(const struct rtentry *rt, struct nhop_object *nh) in match_kernel_route()
206 struct nhop_object *nh = rt->rt_nhop; in pick_kernel_route()
H A Droute_temporal.c53 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 Dnhop_var.h72 struct nhop_object;
90 struct nhop_object *nh; /* backreference to the dataplane nhop */
/freebsd/sys/netinet/
H A Din_fib.c108 struct nhop_object *
112 struct nhop_object *nh; in fib4_lookup()
130 struct nhop_object *
137 struct nhop_object *nh; in fib4_lookup()
172 check_urpf_nhop(const struct nhop_object *nh, uint32_t flags, in check_urpf_nhop()
190 check_urpf(struct nhop_object *nh, uint32_t flags, in check_urpf()
209 static struct nhop_object *
215 struct nhop_object *nh; in lookup_nhop()
252 struct nhop_object *nh; in fib4_check_urpf()
312 struct nhop_object *
[all …]
H A Dtoecore.h44 struct nhop_object;
55 int (*tod_connect)(struct toedev *, struct socket *, struct nhop_object *,
99 struct nhop_object *, struct nhop_object *);
H A Din_fib.h35 struct nhop_object *ro_nh;
49 struct nhop_object *fib4_lookup(uint32_t fibnum, struct in_addr dst,
55 struct nhop_object *fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst,
H A Din_rmx.c54 struct nhop_object *nh) in rib4_set_nh_pfxflags()
87 rib4_augment_nh(u_int fibnum, struct nhop_object *nh) in rib4_augment_nh()
152 in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh, in in_ifadownkill()
H A Din_fib_algo.c76 struct nhop_object *nh;
94 static struct nhop_object *
512 struct nhop_object *nhop;
525 static struct nhop_object *
676 static struct nhop_object *
682 struct nhop_object *nh; in radix4_lookup()
/freebsd/sys/netinet6/
H A Din6_fib.c116 struct nhop_object *
120 struct nhop_object *nh; in fib6_lookup()
138 struct nhop_object *
145 struct nhop_object *nh; in fib6_lookup()
181 check_urpf_nhop(const struct nhop_object *nh, uint32_t flags, in check_urpf_nhop()
199 check_urpf(struct nhop_object *nh, uint32_t flags, in check_urpf()
218 static struct nhop_object *
225 struct nhop_object *nh; in lookup_nhop()
266 struct nhop_object *nh; in fib6_check_urpf()
327 struct nhop_object *
[all …]
H A Din6_fib.h36 struct nhop_object *fib6_lookup(uint32_t fibnum,
43 struct nhop_object *fib6_lookup_debugnet(uint32_t fibnum,
45 struct nhop_object *fib6_radix_lookup_nh(uint32_t fibnum,
H A Din6_fib_algo.c83 struct nhop_object *nhop;
96 static struct nhop_object *
173 struct nhop_object *nh; in lradix6_add_route_cb()
246 static struct nhop_object *
252 struct nhop_object *nh; in radix6_lookup()
273 struct nhop_object *
H A Din6_rmx.c95 struct nhop_object *nh) in rib6_set_nh_pfxflags()
110 rib6_augment_nh(u_int fibnum, struct nhop_object *nh) in rib6_augment_nh()
H A Din6_src.c129 struct nhop_object **, int, u_int, uint32_t);
635 static struct nhop_object *
666 static struct nhop_object *
670 struct nhop_object *nh = NULL; in lookup_route()
715 struct ifnet **retifp, struct nhop_object **retnh, int norouteok, in selectroute()
758 struct nhop_object *nh = lookup_route(fibnum, dstsock, ro, opts, flowid); in selectroute()
794 struct nhop_object *nh = NULL; in in6_selectif()
848 struct ifnet **retifp, struct nhop_object **retnh, u_int fibnum, uint32_t flowid) in in6_selectroute()
873 struct nhop_object *nh; in in6_selecthlim()
/freebsd/sys/net/
H A Droute.h53 struct nhop_object *ro_nh;
337 struct nhop_object;
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);
441 struct nhop_object *rib_lookup(uint32_t fibnum, const struct sockaddr *dst,
/freebsd/sys/netlink/route/
H A Dnexthop.c82 struct nhop_object *un_nhop; /* "production" nexthop */
83 struct nhop_object *un_nhop_src; /* nexthop to copy from */
120 static struct nhop_object *clone_unhop(const struct user_nhop *unhop,
151 struct nhop_object *
175 struct nhop_object *nh = unhop->un_nhop; in nl_find_nhop()
228 struct nhop_object *nh; in nl_find_nhop()
267 static struct nhop_object *
272 struct nhop_object *nh = NULL; in clone_unhop()
284 struct nhop_object *nh; in clone_unhop()
322 nh = (struct nhop_object *)nhg; in clone_unhop()
[all …]
H A Drt.c54 get_rtm_type(const struct nhop_object *nh) in get_rtm_type()
67 nl_get_rtm_protocol(const struct nhop_object *nh) in nl_get_rtm_protocol()
117 static struct nhop_object *
124 dump_rc_nhop_gw(struct nl_writer *nw, const struct nhop_object *nh) in dump_rc_nhop_gw()
162 dump_rc_nhop_mtu(struct nl_writer *nw, const struct nhop_object *nh) in dump_rc_nhop_mtu()
182 struct nhop_object *nh; in dump_rc_nhg()
252 const struct nhop_object *nh = rnd->rnd_nhop; in dump_rc_nhop()
751 static struct nhop_object *
752 finalize_nhop(struct nhop_object *nh, const struct sockaddr *dst, int *perror) in finalize_nhop()
858 struct nl_pstate *npt, struct nhop_object **pnh) in create_nexthop_one()
[all …]
H A Droute_var.h135 struct nhop_object *nl_find_nhop(uint32_t fibnum, int family,
137 int nl_set_nexthop_gw(struct nhop_object *nh, struct sockaddr *gw,
/freebsd/sys/contrib/dpdk_rte_lpm/
H A Drte_lpm6.h25 struct nhop_object;
27 struct nhop_object **nh_idx; /**< # -> idx mappings */

1234