Searched refs:nhop_object (Results 1 - 25 of 74) sorted by relevance

123

/freebsd-13-stable/sys/net/route/
H A Dnhop.h82 * Struct 'nhop_object' field description:
119 * Note: struct nhop_object fields are ordered in a way that
123 #define NHOP_END_CMP (__offsetof(struct nhop_object, nh_pksent))
125 struct nhop_object { struct
167 struct nhop_object *nh;
171 void nhop_free(struct nhop_object *nh);
177 uint32_t nhop_get_idx(const struct nhop_object *nh);
178 enum nhop_type nhop_get_type(const struct nhop_object *nh);
179 int nhop_get_rtflags(const struct nhop_object *nh);
180 struct vnet *nhop_get_vnet(const struct nhop_object *n
[all...]
H A Droute_var.h52 const struct sockaddr *mask, struct nhop_object *nh);
169 struct nhop_object *rt_nhop; /* nexthop data */
232 bool nhop_can_multipath(const struct nhop_object *nh);
233 bool match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw);
235 const struct rtentry *rt, const struct nhop_object *nh);
237 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);
253 void nhop_free_any(struct nhop_object *n
[all...]
H A Dnhop_ctl.c80 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w);
87 static struct ifnet *get_aifp(const struct nhop_object *nh, int reference);
93 static void print_nhop(const char *prefix, const struct nhop_object *nh);
95 _Static_assert(__offsetof(struct nhop_object, nh_ifp) == 32,
96 "nhop_object: wrong nh_ifp offset");
97 _Static_assert(sizeof(struct nhop_object) <= 128,
98 "nhop_object: size exceeds 128 bytes");
102 #define NHOP_OBJECT_ALIGNED_SIZE roundup2(sizeof(struct nhop_object), \
128 get_aifp(const struct nhop_object *nh, int reference)
177 set_nhop_mtu_from_info(struct nhop_object *n
[all...]
H A Dfib_algo.h62 struct nhop_object *nh_old;
63 struct nhop_object *nh_new;
73 typedef struct nhop_object *flm_lookup_t(void *algo_data,
127 uint32_t fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh);
128 struct nhop_object **fib_get_nhop_array(struct fib_data *fd);
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 */
94 struct nhop_object;
98 struct nhop_object *rnd_nhop;
113 struct nhop_object *rt_get_raw_nhop(const struct rtentry *rt);
H A Dnhop_var.h75 struct nhop_object;
87 struct nhop_object *nh; /* backreference to the dataplane nhop */
H A Droute_ctl.c134 struct nhop_object *nh = rt->rt_nhop;
221 nhop_can_multipath(const struct nhop_object *nh)
272 struct nhop_object *
403 match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw)
451 const struct nhop_object *nh)
478 can_override_nhop(const struct rt_addrinfo *info, const struct nhop_object *nh)
581 struct nhop_object *nh;
654 struct nhop_object *nh_orig;
656 struct nhop_object *nh;
774 struct nhop_object *n
[all...]
H A Droute_temporal.c56 expire_route(const struct rtentry *rt, const struct nhop_object *nh, void *arg)
H A Droute_ddb.c134 struct nhop_object *nh;
139 nh = (struct nhop_object *)rt->rt_nhop;
H A Dfib_algo.c183 struct nhop_object **nh_idx; /* nhop idx->ptr array */
204 static uint32_t fib_ref_nhop(struct fib_data *fd, struct nhop_object *nh);
205 static void fib_unref_nhop(struct fib_data *fd, struct nhop_object *nh);
664 struct nhop_object *nh;
968 struct nhop_object *nh = rt_get_raw_nhop(rt);
1541 static struct nhop_object *
1755 struct nhop_object **
1763 get_nhop_idx(struct nhop_object *nh)
1776 fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh)
1790 fib_ref_nhop(struct fib_data *fd, struct nhop_object *n
[all...]
/freebsd-13-stable/sys/netinet/
H A Din_fib.h37 struct nhop_object *ro_nh;
51 struct nhop_object *fib4_lookup(uint32_t fibnum, struct in_addr dst,
57 struct nhop_object *fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst,
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.c112 struct nhop_object *
116 struct nhop_object *nh;
134 struct nhop_object *
141 struct nhop_object *nh;
176 check_urpf_nhop(const struct nhop_object *nh, uint32_t flags,
194 check_urpf(struct nhop_object *nh, uint32_t flags,
213 static struct nhop_object *
219 struct nhop_object *nh;
256 struct nhop_object *nh;
316 struct nhop_object *
[all...]
H A Din_rmx.c56 struct nhop_object *nh)
156 in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh,
H A Din_fib_algo.c78 struct nhop_object *nh;
96 static struct nhop_object *
514 struct nhop_object *nhop;
527 static struct nhop_object *
678 static struct nhop_object *
684 struct nhop_object *nh;
H A Dip_fastfwd.c117 ip_redir_alloc(struct mbuf *m, struct nhop_object *nh,
157 ip_findroute(struct nhop_object **pnh, struct in_addr dest, struct mbuf *m)
159 struct nhop_object *nh;
201 struct nhop_object *nh = NULL;
/freebsd-13-stable/sys/netinet6/
H A Din6_fib.h38 struct nhop_object *fib6_lookup(uint32_t fibnum,
45 struct nhop_object *fib6_lookup_debugnet(uint32_t fibnum,
47 struct nhop_object *fib6_radix_lookup_nh(uint32_t fibnum,
H A Din6_fib.c120 struct nhop_object *
124 struct nhop_object *nh;
142 struct nhop_object *
149 struct nhop_object *nh;
185 check_urpf_nhop(const struct nhop_object *nh, uint32_t flags,
203 check_urpf(struct nhop_object *nh, uint32_t flags,
222 static struct nhop_object *
229 struct nhop_object *nh;
270 struct nhop_object *nh;
331 struct nhop_object *
[all...]
H A Din6_fib_algo.c85 struct nhop_object *nhop;
98 static struct nhop_object *
175 struct nhop_object *nh;
248 static struct nhop_object *
254 struct nhop_object *nh;
275 struct nhop_object *
H A Dip6_fastfwd.c59 ip6_findroute(struct nhop_object **pnh, const struct sockaddr_in6 *dst,
62 struct nhop_object *nh;
95 struct nhop_object *nh;
H A Din6_rmx.c103 struct nhop_object *nh)
/freebsd-13-stable/sys/contrib/dpdk_rte_lpm/
H A Drte_lpm6.h25 struct nhop_object;
27 struct nhop_object **nh_idx; /**< # -> idx mappings */
H A Drte_lpm.h123 struct nhop_object;
125 struct nhop_object **nh_idx; /**< # -> idx mappings */
/freebsd-13-stable/sys/net/
H A Droute.h53 struct nhop_object *ro_nh;
342 struct nhop_object;
343 typedef int rib_filter_f_t(const struct rtentry *, const struct nhop_object *,
419 int rt_routemsg(int, struct rtentry *, struct nhop_object *, int);
445 struct nhop_object *rib_lookup(uint32_t fibnum, const struct sockaddr *dst,
H A Droute.c80 static int rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *,
82 static int rt_exportinfo(struct rtentry *rt, struct nhop_object *nh,
298 struct nhop_object *nh;
334 rt_exportinfo(struct rtentry *rt, struct nhop_object *nh,
426 struct nhop_object *nh;
481 rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *nh, void *arg)
719 rt_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh,

Completed in 202 milliseconds

123