Home
last modified time | relevance | path

Searched refs:rtentry (Results 1 – 25 of 99) sorted by relevance

1234

/openbsd-src/sys/net/
H A Droute.h110 * RTF_GATEWAY set, rt_gwroute points at the rtentry for the rt_gateway
112 * number of RTF_GATEWAY rtentry structs with their rt_gwroute pointing
113 * at this rtentry.
116 struct rtentry { struct
118 SRPL_ENTRY(rtentry) rt_next; /* [R] next mpath entry to our dst */ argument
124 struct rtentry *_nh; /* [X] rtentry for rt_gateway */ argument
125 unsigned int _ref; /* [X] # gateway rtentry refs */
129 struct rtentry *rt_parent; /* [N] if cloned, parent rtentry */ argument
131 rt_rmxrtentry global() argument
132 rt_ifidxrtentry global() argument
133 rt_flagsrtentry global() argument
134 rt_refcntrtentry global() argument
135 rt_plenrtentry global() argument
136 rt_labelidrtentry global() argument
137 rt_priorityrtentry global() argument
[all...]
H A Drtable.h44 struct rtentry *rtable_lookup(unsigned int, const struct sockaddr *,
46 struct rtentry *rtable_match(unsigned int, const struct sockaddr *,
48 struct rtentry *rtable_iterate(struct rtentry *);
51 struct rtentry *);
53 const struct sockaddr *, struct rtentry *);
54 int rtable_walk(unsigned int, sa_family_t, struct rtentry **,
55 int (*)(struct rtentry *, void *, unsigned int), void *);
59 uint8_t, struct rtentry *);
H A Drtable.c360 void rtable_mpath_insert(struct art_node *, struct rtentry *);
418 struct rtentry *
424 struct rtentry *rt = NULL; in rtable_lookup()
474 struct rtentry *
479 struct rtentry *rt = NULL; in rtable_match()
504 struct rtentry *mrt; in rtable_match()
550 struct rtentry *rt) in rtable_insert()
552 struct rtentry *mrt; in rtable_insert()
577 struct rtentry *mrt; in rtable_insert()
610 SRPL_REMOVE_LOCKED(&rt_rc, &an->an_rtlist, rt, rtentry, in rtable_insert()
[all …]
H A Droute.c160 struct pool rtentry_pool; /* pool for rtentry structures */
163 int rt_setgwroute(struct rtentry *, const struct sockaddr *, u_int);
164 void rt_putgwroute(struct rtentry *, struct rtentry *);
165 int rtflushclone1(struct rtentry *, void *, u_int);
166 int rtflushclone(struct rtentry *, unsigned int);
167 int rt_ifa_purge_walker(struct rtentry *, void *, unsigned int);
168 struct rtentry *rt_match(const struct sockaddr *, uint32_t *, int,
170 int rt_clone(struct rtentry **, const struct sockaddr *, unsigned int);
193 pool_init(&rtentry_pool, sizeof(struct rtentry), in route_init()
1536 rt_timer_queue_init(struct rttimer_queue * rtq,int timeout,void (* func)(struct rtentry *,u_int)) rt_timer_queue_init() argument
[all...]
H A Dif_var.h88 struct rtentry;
150 void (*if_rtrequest)(struct ifnet *, int, struct rtentry *);
197 struct rtentry *); /* output routine (enqueue) */
200 struct sockaddr *, struct rtentry *);
337 struct sockaddr *, struct rtentry *);
339 struct sockaddr *, struct rtentry *);
341 struct rtentry *, u_int);
343 void if_rtrequest_dummy(struct ifnet *, int, struct rtentry *);
344 void p2p_rtrequest(struct ifnet *, int, struct rtentry *);
H A Dbfd.h134 struct rtentry *bc_rt;
155 struct sockaddr *bfd2sa(struct rtentry *, struct sockaddr_bfd *);
157 int bfdset(struct rtentry *);
158 void bfdclear(struct rtentry *);
H A Dif_loop.c145 void lortrequest(struct ifnet *, int, struct rtentry *);
148 struct mbuf *, struct sockaddr *, struct rtentry *);
259 struct rtentry *rt) in looutput()
278 lortrequest(struct ifnet *ifp, int cmd, struct rtentry *rt) in lortrequest()
H A Dart.h82 struct rtentry;
89 SRPL_HEAD(, rtentry) an__rtlist; /* Route related to this node */
H A Dbfd.c146 struct bfd_config *bfd_lookup(struct rtentry *);
178 bfdset(struct rtentry *rt) in bfdset()
225 bfdclear(struct rtentry *rt) in bfdclear()
239 struct rtentry *rt = bfd->bc_rt; in bfd_clear_task()
318 bfd_lookup(struct rtentry *rt) in bfd_lookup()
330 bfd2sa(struct rtentry *rt, struct sockaddr_bfd *sa_bfd) in bfd2sa()
404 struct rtentry *rt = bfd->bc_rt; in bfd_send_task()
430 struct rtentry *rt = bfd->bc_rt; in bfd_listener()
509 struct rtentry *rt = bfd->bc_rt; in bfd_sender()
900 struct rtentry *rt = bfd->bc_rt; in bfd_set_state()
[all …]
/openbsd-src/usr.sbin/mrouted/
H A Droute.c19 #define RT_ADDR (struct rtentry *)&routing_table
31 struct rtentry *routing_table; /* pointer to list of route entries */
36 static struct rtentry *rtp; /* pointer to a route entry */
37 static struct rtentry *rt_end; /* pointer to last route entry */
43 static int init_children_and_leaves(struct rtentry *r, vifi_t parent);
46 static void discard_route(struct rtentry *prev_r);
48 static int report_chunk(struct rtentry *start_rt, vifi_t vifi, u_int32_t dst);
71 init_children_and_leaves(struct rtentry *r, vifi_t parent) in init_children_and_leaves()
116 struct rtentry *r; in add_vif_to_routes()
149 struct rtentry *r; in delete_vif_from_routes()
[all …]
H A Droute.h27 struct rtentry { struct
28 struct rtentry *rt_next; /* link to next entry MUST BE FIRST */ argument
42 struct rtentry *rt_prev; /* link to previous entry */ argument
H A Ddefs.h159 extern struct rtentry * determine_route(u_int32_t src);
215 extern void del_table_entry(struct rtentry *r,
217 extern void update_table_entry(struct rtentry *r);
221 extern void steal_sources(struct rtentry *rt);
/openbsd-src/sys/netinet6/
H A Dnd6.h84 struct rtentry *ln_rt; /* [I] backpointer to rtentry */
127 struct rtentry *nd6_lookup(const struct in6_addr *, int, struct ifnet *,
131 void nd6_nud_hint(struct rtentry *);
132 void nd6_rtrequest(struct ifnet *, int, struct rtentry *);
136 int nd6_resolve(struct ifnet *, struct rtentry *, struct mbuf *,
H A Dnd6.c109 void nd6_invalidate(struct rtentry *);
110 void nd6_free(struct rtentry *, int);
111 int nd6_llinfo_timer(struct rtentry *, int);
277 struct rtentry *rt = ln->ln_rt; in nd6_timer()
304 nd6_llinfo_timer(struct rtentry *rt, int i_am_router) in nd6_llinfo_timer()
489 struct rtentry *rt; in nd6_purge()
502 struct rtentry *
506 struct rtentry *rt; in nd6_lookup()
602 struct rtentry *rt; in nd6_is_addr_neighbor()
644 nd6_invalidate(struct rtentry *r
[all...]
H A Dip6_mroute.c125 int ip6_mdq(struct mbuf *, struct ifnet *, struct rtentry *, int);
146 struct rtentry *mf6c_find(struct ifnet *, struct in6_addr *,
148 struct rtentry *mrt6_mcast_add(struct ifnet *, struct sockaddr *,
150 void mrt6_mcast_del(struct rtentry *, unsigned int);
250 struct rtentry *rt; in get_sg6_cnt()
348 mrt6_rtwalk_mf6csysctl(struct rtentry *rt, void *arg, unsigned int rtableid) in mrt6_rtwalk_mf6csysctl()
474 mrouter6_rtwalk_delete(struct rtentry *rt, void *arg, unsigned int rtableid) in mrouter6_rtwalk_delete()
499 struct rtentry *rt = NULL; in ip6_mrouter_done()
633 struct rtentry *rt; in mf6c_add_route()
666 struct rtentry *rt; in mf6c_update()
[all …]
H A Dnd6_rtr.c60 int rt6_deleteroute(struct rtentry *, void *, unsigned int);
186 struct rtentry *rt = NULL; in rt6_flush()
220 rt6_deleteroute(struct rtentry *rt, void *arg, unsigned int id) in rt6_deleteroute()
H A Din6_src.c98 struct rtentry *rt; in in6_pcbselsrc()
297 struct rtentry *
306 struct rtentry *rt; in in6_selectroute()
336 struct rtentry *rt; in in6_selectif()
/openbsd-src/usr.bin/netstat/
H A Droute.c66 struct rtentry rtentry; variable
73 static void p_krtentry(struct rtentry *);
266 struct rtentry *rt; in p_artnode()
272 kread((u_long)rt, &rtentry, sizeof(rtentry)); in p_artnode()
275 p_krtentry(&rtentry); in p_artnode()
276 rt = rtentry.rt_next.se_next.ref; in p_artnode()
281 p_krtentry(struct rtentry *rt) in p_krtentry()
/openbsd-src/sys/netinet/
H A Dip_mroute.c105 struct rtentry *mfc_find(struct ifnet *, struct in_addr *,
109 int mrt_rtwalk_mfcsysctl(struct rtentry *, void *, unsigned int);
111 int mrouter_rtwalk_delete(struct rtentry *, void *, unsigned int);
125 int ip_mdq(struct mbuf *, struct ifnet *, struct rtentry *, int);
127 struct rtentry *rt_mcast_add(struct ifnet *, struct sockaddr *,
129 void mrt_mcast_del(struct rtentry *, unsigned int);
146 struct rtentry *
150 struct rtentry *rt; in mfc_find()
297 struct rtentry *rt; in get_sg_cnt()
400 mrt_rtwalk_mfcsysctl(struct rtentry *rt, void *arg, unsigned int rtableid) in mrt_rtwalk_mfcsysctl()
[all …]
H A Dif_ether.c79 struct rtentry *la_rt; /* [I] backpointer to rtentry */
93 void arpinvalidate(struct rtentry *);
94 void arptfree(struct rtentry *);
96 struct rtentry *arplookup(struct in_addr *, int, int, unsigned int);
99 int arpcache(struct ifnet *, struct ether_arp *, struct rtentry *);
136 struct rtentry *rt = la->la_rt; in arptimer()
158 arp_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt) in arp_rtrequest()
334 arpresolve(struct ifnet *ifp, struct rtentry *rt0, struct mbuf *m, in arpresolve()
340 struct rtentry *r in arpresolve()
[all...]
H A Dif_ether.h270 int arpresolve(struct ifnet *, struct rtentry *, struct mbuf *,
272 void arp_rtrequest(struct ifnet *, int, struct rtentry *);
283 struct rtentry *, struct ether_header *);
286 struct rtentry *, int *);
288 struct rtentry *);
289 void ether_rtrequest(struct ifnet *, int, struct rtentry *);
/openbsd-src/regress/sys/net/rtable/
H A Dutil.c75 struct sockaddr *rt_plen2mask(struct rtentry *, struct sockaddr_in6 *);
112 struct rtentry *rt, *nrt; in route_insert()
153 struct rtentry *rt, *nrt; in route_delete()
199 struct rtentry *rt; in route_lookup()
243 rtentry_dump(struct rtentry *rt, void *w, unsigned int rid) in rtentry_dump()
255 rtentry_delete(struct rtentry *rt, void *w, unsigned int rid) in rtentry_delete()
295 rtref(struct rtentry *rt) in rtref()
301 rtfree(struct rtentry *rt) in rtfree()
399 rt_plen2mask(struct rtentry *rt, struct sockaddr_in6 *sa_mask) in rt_plen2mask()
519 rt_hash(struct rtentry *r
[all...]
H A Dutil.h26 int rtentry_dump(struct rtentry *, void *, unsigned int);
27 int rtentry_delete(struct rtentry *, void *, unsigned int);
H A Dkern_compat.h89 struct rtentry;
91 int rt_hash(struct rtentry *, const struct sockaddr *, uint32_t *);
/openbsd-src/sys/ddb/
H A Ddb_interface.h70 struct rtentry;
71 int db_show_rtentry(struct rtentry *, void *, unsigned int);

1234