Lines Matching refs:rtentry
264 struct rtentry rtd_entry; /* rtentry */
265 struct rtentry rtd_entry_saved; /* saved rtentry */
296 static void rte_lock_init(struct rtentry *);
297 static void rte_lock_destroy(struct rtentry *);
298 static inline struct rtentry *rte_alloc_debug(void);
299 static inline void rte_free_debug(struct rtentry *);
307 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
310 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
312 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
323 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
328 static struct rtentry *rte_alloc(void);
329 static void rte_free(struct rtentry *);
330 static void rtfree_common(struct rtentry *, boolean_t);
332 static void rt_set_idleref(struct rtentry *);
333 static void rt_clear_idleref(struct rtentry *);
334 static void rt_str4(struct rtentry *, char *, uint32_t, char *, uint32_t);
335 static void rt_str6(struct rtentry *, char *, uint32_t, char *, uint32_t);
336 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
451 size = sizeof(struct rtentry); in route_init()
465 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
928 static struct rtentry *
934 struct rtentry *
942 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
969 struct rtentry *
1113 struct rtentry *
1124 struct rtentry *
1141 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1147 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1318 rtfree(struct rtentry *rt) in rtfree()
1329 rtunref(struct rtentry *p) in rtunref()
1373 rtref(struct rtentry *p) in rtref()
1410 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1446 struct rtentry **rtp) in rtredirect()
1814 struct rtentry *rt0;
1820 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1829 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1859 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1870 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
2485 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2497 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2647 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2920 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
3103 static struct rtentry *
3353 struct rtentry *
3361 struct rtentry *
3370 rt_validate(struct rtentry *rt) in rt_validate()
3602 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3718 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3740 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3755 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3784 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3790 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3797 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3811 rt_unlock(struct rtentry *rt) in rt_unlock()
3843 static struct rtentry *
3854 rte_free(struct rtentry *p) in rte_free()
3917 static inline struct rtentry *
3934 rte_free_debug(struct rtentry *p) in rte_free_debug()
3951 bzero((caddr_t)p, offsetof(struct rtentry, rt_lock)); in rte_free_debug()
4099 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4100 struct rtentry **out_route) in route_to_gwroute()
4301 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4345 rt_str4(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str4()
4376 rt_str6(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str6()
4407 rt_str(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str()
4428 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4429 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4509 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()