Lines Matching refs:rtentry
271 struct rtentry rtd_entry; /* rtentry */
272 struct rtentry rtd_entry_saved; /* saved rtentry */
306 static void rte_lock_init(struct rtentry *);
307 static void rte_lock_destroy(struct rtentry *);
308 static inline struct rtentry *rte_alloc_debug(void);
309 static inline void rte_free_debug(struct rtentry *);
317 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
320 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
322 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
333 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
338 static struct rtentry *rte_alloc(void);
339 static void rte_reset(struct rtentry *, bool preserve_lock);
340 static void rte_free(struct rtentry *);
341 static void rtfree_common(struct rtentry *, boolean_t);
343 static void rt_set_idleref(struct rtentry *);
344 static void rt_clear_idleref(struct rtentry *);
345 static void rt_str4(struct rtentry *, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_…
346 static void rt_str6(struct rtentry *, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_…
348 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
510 size = sizeof(struct rtentry); in route_init()
524 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
987 static struct rtentry *
993 struct rtentry *
1001 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
1028 struct rtentry *
1121 struct rtentry *defrt = NULL; in rtalloc1_common_locked()
1172 struct rtentry *
1183 struct rtentry *
1200 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1206 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1377 rtfree(struct rtentry *rt) in rtfree()
1388 rtunref(struct rtentry *p) in rtunref()
1432 rtref(struct rtentry *p) in rtref()
1469 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1505 struct rtentry **rtp) in rtredirect()
1875 struct rtentry *rt0;
1881 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1890 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1920 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1931 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
2548 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2560 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2723 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2994 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
3182 static struct rtentry *
3456 struct rtentry *
3464 struct rtentry *
3473 rt_validate(struct rtentry *rt) in rt_validate()
3705 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3821 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3843 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3858 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3887 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3893 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3900 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3914 rt_unlock(struct rtentry *rt) in rt_unlock()
3927 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_lock_debug()
3939 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_unlock_debug()
3946 static struct rtentry *
3953 return (rtentry_ref_t)kalloc_type(struct rtentry, Z_ZERO); in rte_alloc()
3962 rte_reset(struct rtentry *p, bool preserve_lock) in rte_reset()
3965 ? __offsetof(struct rtentry, rt_lock) in rte_reset()
3966 : sizeof(struct rtentry); in rte_reset()
3972 rte_free(struct rtentry *p) in rte_free()
3984 kfree_type(struct rtentry, p); in rte_free()
4035 static inline struct rtentry *
4051 rte_free_debug(struct rtentry *p) in rte_free_debug()
4217 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4218 struct rtentry **out_route) in route_to_gwroute()
4419 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4463 rt_str4(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str4()
4494 rt_str6(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str6()
4525 rt_str(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen), … in rt_str()
4546 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4547 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4636 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()