Lines Matching refs:rtentry

260 	struct rtentry  rtd_entry;                      /* rtentry */
261 struct rtentry rtd_entry_saved; /* saved rtentry */
291 static void rte_lock_init(struct rtentry *);
292 static void rte_lock_destroy(struct rtentry *);
293 static inline struct rtentry *rte_alloc_debug(void);
294 static inline void rte_free_debug(struct rtentry *);
302 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
305 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
307 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
318 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
323 static struct rtentry *rte_alloc(void);
324 static void rte_free(struct rtentry *);
325 static void rtfree_common(struct rtentry *, boolean_t);
327 static void rt_set_idleref(struct rtentry *);
328 static void rt_clear_idleref(struct rtentry *);
329 static void rt_str4(struct rtentry *, char *, uint32_t, char *, uint32_t);
330 static void rt_str6(struct rtentry *, char *, uint32_t, char *, uint32_t);
331 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
391 #define RT(r) ((struct rtentry *)r)
447 size = sizeof(struct rtentry); in route_init()
461 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
833 struct rtentry *rt = (struct rtentry *)rn; in rn_match_ifscope()
887 struct rtentry *rt; in rtalloc_ign_common_locked()
923 static struct rtentry *
929 struct rtentry *
937 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
964 struct rtentry *
969 struct rtentry *rt, *newrt = NULL; in rtalloc1_common_locked()
1056 struct rtentry *defrt = NULL; in rtalloc1_common_locked()
1107 struct rtentry *
1110 struct rtentry *entry; in rtalloc1()
1118 struct rtentry *
1122 struct rtentry *entry; in rtalloc1_scoped()
1135 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1141 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1224 struct rtentry *rt_parent; in rtfree_common()
1312 rtfree(struct rtentry *rt) in rtfree()
1323 rtunref(struct rtentry *p) in rtunref()
1367 rtref(struct rtentry *p) in rtref()
1404 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1440 struct rtentry **rtp) in rtredirect()
1442 struct rtentry *rt = NULL; in rtredirect()
1648 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()
4085 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4086 struct rtentry **out_route) in route_to_gwroute()
4089 struct rtentry *rt = hint0, *hint = hint0; in route_to_gwroute()
4135 struct rtentry *gwrt = rt->rt_gwroute; in route_to_gwroute()
4224 struct rtentry *prt = hint->rt_parent; in route_to_gwroute()
4286 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4330 rt_str4(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str4()
4361 rt_str6(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str6()
4392 rt_str(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str()
4413 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4414 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4435 struct rtentry *rt = p_ev->rt_ev_arg.rt; in route_event_callback()
4462 struct rtentry *rt = (struct rtentry *)rn; in route_event_walktree()
4463 struct rtentry *gwrt = p_route_ev->rt; in route_event_walktree()
4494 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()