Lines Matching refs:rtentry
111 #define RTD_DEBUG 0x1 /* enable or disable rtentry debug facility */
115 static struct zone *rte_zone; /* special zone for rtentry */
117 #define RTE_ZONE_NAME "rtentry" /* name of rtentry zone */
126 * Debug variant of rtentry structure.
129 struct rtentry rtd_entry; /* rtentry */
130 struct rtentry rtd_entry_saved; /* saved rtentry */
164 static inline struct rtentry *rte_alloc_debug(void);
165 static inline void rte_free_debug(struct rtentry *);
171 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, u_long,
174 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
253 #define RT(r) ((struct rtentry *)r)
262 rt_inet_default(struct rtentry *rt, struct sockaddr *dst)
355 struct rtentry *rt = (struct rtentry *)rn;
403 size = sizeof (struct rtentry);
439 struct rtentry *rt;
460 struct rtentry *
466 struct rtentry *
477 static struct rtentry *
482 struct rtentry *rt, *newrt = NULL;
556 struct rtentry *
559 struct rtentry * entry;
568 * Remove a reference count from an rtentry.
572 rtfree_locked(struct rtentry *rt)
618 * the rtentry must have been removed from the routing table
655 * and the rtentry itself of course
662 rtfree(struct rtentry *rt)
676 rtunref(struct rtentry *p)
710 * Add a reference count from an rtentry.
713 rtref(struct rtentry *p)
747 rtsetifa(struct rtentry *rt, struct ifaddr* ifa)
804 struct rtentry **rtp)
806 struct rtentry *rt = NULL;
980 struct rtentry *rt = NULL;
1080 struct rtentry *rt0;
1086 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt)
1095 struct rtentry **ret_nrt, unsigned int ifscope)
1124 struct rtentry **ret_nrt, unsigned int ifscope)
1127 struct rtentry *rt;
1188 rt = (struct rtentry *)rn;
1214 * This might result in another rtentry being freed if
1220 (rt = (struct rtentry *)rn)->rt_gwroute = 0;
1231 * one more rtentry floating around that is not
1249 * but it's up to it to free the rtentry as we won't be
1355 struct rtentry *rt2;
1445 * actually return a resultant rtentry and
1467 struct rtentry **ret_nrt)
1486 struct rtentry *rt = (struct rtentry *)rn;
1487 struct rtentry *rt0 = vp;
1495 rt->rt_flags, (struct rtentry **)0);
1516 struct rtentry *rt = (struct rtentry *)rn;
1518 struct rtentry *rt0 = ap->rt0;
1568 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate)
1598 struct rtentry *gwrt;
1815 struct rtentry *
1867 struct rtentry *rt = RT(rn);
1958 struct rtentry *rt;
1962 struct rtentry *nrt = 0;
1987 * Get an rtentry that is in the routing tree and
1995 * Ok so we found the rtentry. it has an extra reference
2002 * If the interface in the rtentry doesn't match
2105 struct rtentry *
2111 return ((struct rtentry *)zalloc(rte_zone));
2115 rte_free(struct rtentry *p)
2128 static inline struct rtentry *
2143 return ((struct rtentry *)rte);
2147 rte_free_debug(struct rtentry *p)