Home | History | Annotate | Download | only in net

Lines Matching defs:route

1 /*	$NetBSD: route.h,v 1.135 2025/09/21 15:11:52 christos Exp $	*/
31 * @(#)route.h 8.5 (Berkeley) 2/8/95
61 * A route consists of a destination address and a reference
65 struct route {
86 time_t rmx_expire; /* lifetime for route, e.g. redirect */
87 time_t rmx_pksent; /* packets sent using this route */
100 * preferring the former if available. For each route we infer
102 * the route was entered. Routes that forward packets through
123 struct rtentry *rt_parent; /* parent of cloned route */
125 struct sockaddr *rt_tag; /* route tagging info */
153 #define RTF_UP 0x1 /* route usable */
162 #define RTF_CONNECTED 0x100 /* hosts on this route are neighbours */
168 // #define RTF_CLONED 0x2000 /* this is a cloned route */
171 #define RTF_SRC 0x10000 /* route has fixed source address */
173 #define RTF_LOCAL 0x40000 /* route represents a local address */
174 #define RTF_BROADCAST 0x80000 /* route represents a bcast address */
175 #define RTF_UPDATING 0x100000 /* route is updating */
240 #define RTM_ADD 0x1 /* Add Route */
241 #define RTM_DELETE 0x2 /* Delete Route */
245 #define RTM_REDIRECT 0x6 /* Told to use different route */
310 #define RTA_TAG 0x100 /* route tag */
326 #define RTAX_TAG 8 /* route tag */
359 struct rtentry *rtt_rt; /* Back pointer to the route */
478 void rtcache_copy(struct route *, struct route *);
479 void rtcache_free(struct route *);
481 rtcache_init(struct route *);
483 rtcache_init_noclone(struct route *);
485 rtcache_lookup2(struct route *, const struct sockaddr *, int,
487 int rtcache_setdst(struct route *, const struct sockaddr *);
489 rtcache_update(struct route *, int);
492 rtcache_invariants(const struct route *ro)
499 rtcache_lookup1(struct route *ro, const struct sockaddr *dst, int clone)
507 rtcache_lookup(struct route *ro, const struct sockaddr *dst)
513 rtcache_getdst(const struct route *ro)
521 rtcache_validate(struct route *);
523 void rtcache_unref(struct rtentry *, struct route *);
528 static __inline struct route *
532 return *(struct route **)percpu_getref(pc);