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()
1873 struct rtentry *rt0;
1879 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1888 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1918 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1929 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
2546 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2558 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2721 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2992 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
3180 static struct rtentry *
3454 struct rtentry *
3462 struct rtentry *
3471 rt_validate(struct rtentry *rt) in rt_validate()
3703 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3819 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3841 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3856 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3885 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3891 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3898 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3912 rt_unlock(struct rtentry *rt) in rt_unlock()
3925 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_lock_debug()
3937 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_unlock_debug()
3944 static struct rtentry *
3951 return (rtentry_ref_t)kalloc_type(struct rtentry, Z_ZERO); in rte_alloc()
3960 rte_reset(struct rtentry *p, bool preserve_lock) in rte_reset()
3963 ? __offsetof(struct rtentry, rt_lock) in rte_reset()
3964 : sizeof(struct rtentry); in rte_reset()
3970 rte_free(struct rtentry *p) in rte_free()
3982 kfree_type(struct rtentry, p); in rte_free()
4033 static inline struct rtentry *
4049 rte_free_debug(struct rtentry *p) in rte_free_debug()
4215 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4216 struct rtentry **out_route) in route_to_gwroute()
4417 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4461 rt_str4(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str4()
4492 rt_str6(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen),… in rt_str6()
4523 rt_str(struct rtentry *rt, char *ds __sized_by(dslen), uint32_t dslen, char *gs __sized_by(gslen), … in rt_str()
4544 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4545 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4634 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()