Lines Matching refs:rtentry
266 struct rtentry rtd_entry; /* rtentry */
267 struct rtentry rtd_entry_saved; /* saved rtentry */
301 static void rte_lock_init(struct rtentry *);
302 static void rte_lock_destroy(struct rtentry *);
303 static inline struct rtentry *rte_alloc_debug(void);
304 static inline void rte_free_debug(struct rtentry *);
312 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
315 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
317 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
328 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
333 static struct rtentry *rte_alloc(void);
334 static void rte_reset(struct rtentry *, bool preserve_lock);
335 static void rte_free(struct rtentry *);
336 static void rtfree_common(struct rtentry *, boolean_t);
338 static void rt_set_idleref(struct rtentry *);
339 static void rt_clear_idleref(struct rtentry *);
340 static void rt_str4(struct rtentry *, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_…
341 static void rt_str6(struct rtentry *, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_…
343 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
509 size = sizeof(struct rtentry); in route_init()
523 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
986 static struct rtentry *
992 struct rtentry *
1000 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
1027 struct rtentry *
1120 struct rtentry *defrt = NULL; in rtalloc1_common_locked()
1171 struct rtentry *
1182 struct rtentry *
1199 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1205 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1376 rtfree(struct rtentry *rt) in rtfree()
1387 rtunref(struct rtentry *p) in rtunref()
1431 rtref(struct rtentry *p) in rtref()
1468 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1504 struct rtentry **rtp) in rtredirect()
1872 struct rtentry *rt0;
1878 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1887 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1917 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1928 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
2545 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2557 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2720 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2991 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
3179 static struct rtentry *
3451 struct rtentry *
3459 struct rtentry *
3468 rt_validate(struct rtentry *rt) in rt_validate()
3700 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3816 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3838 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3853 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3882 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3888 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3895 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3909 rt_unlock(struct rtentry *rt) in rt_unlock()
3922 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_lock_debug()
3934 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_unlock_debug()
3941 static struct rtentry *
3948 return (rtentry_ref_t)kalloc_type(struct rtentry, Z_ZERO); in rte_alloc()
3957 rte_reset(struct rtentry *p, bool preserve_lock) in rte_reset()
3960 ? __offsetof(struct rtentry, rt_lock) in rte_reset()
3961 : sizeof(struct rtentry); in rte_reset()
3967 rte_free(struct rtentry *p) in rte_free()
3979 kfree_type(struct rtentry, p); in rte_free()
4030 static inline struct rtentry *
4046 rte_free_debug(struct rtentry *p) in rte_free_debug()
4212 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4213 struct rtentry **out_route) in route_to_gwroute()
4414 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4458 rt_str4(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str4()
4489 rt_str6(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str6()
4520 rt_str(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen), … in rt_str()
4541 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4542 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4631 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()