Lines Matching refs:rtentry

263 	struct rtentry  rtd_entry;                      /* rtentry */
264 struct rtentry rtd_entry_saved; /* saved rtentry */
294 static void rte_lock_init(struct rtentry *);
295 static void rte_lock_destroy(struct rtentry *);
296 static inline struct rtentry *rte_alloc_debug(void);
297 static inline void rte_free_debug(struct rtentry *);
305 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
308 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
310 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
321 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
326 static struct rtentry *rte_alloc(void);
327 static void rte_free(struct rtentry *);
328 static void rtfree_common(struct rtentry *, boolean_t);
330 static void rt_set_idleref(struct rtentry *);
331 static void rt_clear_idleref(struct rtentry *);
332 static void rt_str4(struct rtentry *, char *, uint32_t, char *, uint32_t);
333 static void rt_str6(struct rtentry *, char *, uint32_t, char *, uint32_t);
334 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
394 #define RT(r) ((struct rtentry *)r)
452 size = sizeof(struct rtentry); in route_init()
466 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
838 struct rtentry *rt = (struct rtentry *)rn; in rn_match_ifscope()
892 struct rtentry *rt; in rtalloc_ign_common_locked()
928 static struct rtentry *
934 struct rtentry *
942 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
969 struct rtentry *
974 struct rtentry *rt, *newrt = NULL; in rtalloc1_common_locked()
1061 struct rtentry *defrt = NULL; in rtalloc1_common_locked()
1112 struct rtentry *
1115 struct rtentry *entry; in rtalloc1()
1123 struct rtentry *
1127 struct rtentry *entry; in rtalloc1_scoped()
1140 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1146 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1229 struct rtentry *rt_parent; in rtfree_common()
1317 rtfree(struct rtentry *rt) in rtfree()
1328 rtunref(struct rtentry *p) in rtunref()
1372 rtref(struct rtentry *p) in rtref()
1409 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1445 struct rtentry **rtp) in rtredirect()
1447 struct rtentry *rt = NULL; in rtredirect()
1653 struct rtentry *rt = NULL; in ifa_ifwithroute_common_locked()
1808 struct rtentry *rt0;
1814 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1823 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1853 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1856 struct rtentry *rt; in rtrequest_common_locked()
1864 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
1952 struct rtentry *gwrt = NULL; in rtrequest_common_locked()
1966 rt = (struct rtentry *)rn; in rtrequest_common_locked()
2291 struct rtentry *rt2; in rtrequest_common_locked()
2465 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2477 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2499 struct rtentry *rt = (struct rtentry *)rn; in rt_fixdelete()
2500 struct rtentry *rt0 = vp; in rt_fixdelete()
2536 struct rtentry *rt = (struct rtentry *)rn; in rt_fixchange()
2538 struct rtentry *rt0 = ap->rt0; in rt_fixchange()
2627 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2710 struct rtentry *gwrt; in rt_setgate()
2900 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
2916 struct rtentry *ogwrt = rt->rt_gwroute; in rt_set_gwroute()
3083 static struct rtentry *
3203 struct rtentry *rt = RT(rn); in rt_lookup_common()
3257 struct rtentry *rt = RT(rn); in rt_lookup_common()
3318 struct rtentry *rt = RT(rn); in rt_lookup_common()
3334 struct rtentry *
3342 struct rtentry *
3351 rt_validate(struct rtentry *rt) in rt_validate()
3397 struct rtentry *rt = NULL; in rtinit_locked()
3586 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3704 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3726 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3741 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3770 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3776 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3783 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3797 rt_unlock(struct rtentry *rt) in rt_unlock()
3810 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_lock_debug()
3822 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_unlock_debug()
3829 static struct rtentry *
3836 return (struct rtentry *)zalloc(rte_zone); in rte_alloc()
3840 rte_free(struct rtentry *p) in rte_free()
3903 static inline struct rtentry *
3916 return (struct rtentry *)rte; in rte_alloc_debug()
3920 rte_free_debug(struct rtentry *p) in rte_free_debug()
3937 bzero((caddr_t)p, offsetof(struct rtentry, rt_lock)); in rte_free_debug()
4121 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4122 struct rtentry **out_route) in route_to_gwroute()
4125 struct rtentry *rt = hint0, *hint = hint0; in route_to_gwroute()
4171 struct rtentry *gwrt = rt->rt_gwroute; in route_to_gwroute()
4260 struct rtentry *prt = hint->rt_parent; in route_to_gwroute()
4322 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4366 rt_str4(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str4()
4397 rt_str6(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str6()
4428 rt_str(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str()
4449 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4450 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4471 struct rtentry *rt = p_ev->rt_ev_arg.rt; in route_event_callback()
4498 struct rtentry *rt = (struct rtentry *)rn; in route_event_walktree()
4499 struct rtentry *gwrt = p_route_ev->rt; in route_event_walktree()
4530 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()