Lines Matching refs:rtentry

264 	struct rtentry  rtd_entry;                      /* rtentry */
265 struct rtentry rtd_entry_saved; /* saved rtentry */
299 static void rte_lock_init(struct rtentry *);
300 static void rte_lock_destroy(struct rtentry *);
301 static inline struct rtentry *rte_alloc_debug(void);
302 static inline void rte_free_debug(struct rtentry *);
310 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
313 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
315 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
326 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
331 static struct rtentry *rte_alloc(void);
332 static void rte_reset(struct rtentry *, bool preserve_lock);
333 static void rte_free(struct rtentry *);
334 static void rtfree_common(struct rtentry *, boolean_t);
336 static void rt_set_idleref(struct rtentry *);
337 static void rt_clear_idleref(struct rtentry *);
338 static void rt_str4(struct rtentry *, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_…
339 static void rt_str6(struct rtentry *, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_…
341 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
457 size = sizeof(struct rtentry); in route_init()
471 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
934 static struct rtentry *
940 struct rtentry *
948 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
975 struct rtentry *
1068 struct rtentry *defrt = NULL; in rtalloc1_common_locked()
1119 struct rtentry *
1130 struct rtentry *
1147 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1153 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1324 rtfree(struct rtentry *rt) in rtfree()
1335 rtunref(struct rtentry *p) in rtunref()
1379 rtref(struct rtentry *p) in rtref()
1416 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1452 struct rtentry **rtp) in rtredirect()
1820 struct rtentry *rt0;
1826 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1835 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1865 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1876 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
2493 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2505 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2668 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2939 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
3127 static struct rtentry *
3399 struct rtentry *
3407 struct rtentry *
3416 rt_validate(struct rtentry *rt) in rt_validate()
3648 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3764 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3786 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3801 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3830 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3836 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3843 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3857 rt_unlock(struct rtentry *rt) in rt_unlock()
3870 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_lock_debug()
3882 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_unlock_debug()
3889 static struct rtentry *
3896 return (rtentry_ref_t)kalloc_type(struct rtentry, Z_ZERO); in rte_alloc()
3905 rte_reset(struct rtentry *p, bool preserve_lock) in rte_reset()
3908 ? __offsetof(struct rtentry, rt_lock) in rte_reset()
3909 : sizeof(struct rtentry); in rte_reset()
3915 rte_free(struct rtentry *p) in rte_free()
3927 kfree_type(struct rtentry, p); in rte_free()
3978 static inline struct rtentry *
3994 rte_free_debug(struct rtentry *p) in rte_free_debug()
4160 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4161 struct rtentry **out_route) in route_to_gwroute()
4362 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4406 rt_str4(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str4()
4437 rt_str6(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str6()
4468 rt_str(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen), … in rt_str()
4489 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4490 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4579 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()