Lines Matching refs:rtentry

260 	struct rtentry  rtd_entry;                      /* rtentry */
261 struct rtentry rtd_entry_saved; /* saved rtentry */
291 static void rte_lock_init(struct rtentry *);
292 static void rte_lock_destroy(struct rtentry *);
293 static inline struct rtentry *rte_alloc_debug(void);
294 static inline void rte_free_debug(struct rtentry *);
302 static struct rtentry *rtalloc1_common_locked(struct sockaddr *, int, uint32_t,
305 struct sockaddr *, struct sockaddr *, int, struct rtentry **,
307 static struct rtentry *rtalloc1_locked(struct sockaddr *, int, uint32_t);
318 static struct rtentry *rt_lookup_common(boolean_t, boolean_t, struct sockaddr *,
323 static struct rtentry *rte_alloc(void);
324 static void rte_free(struct rtentry *);
325 static void rtfree_common(struct rtentry *, boolean_t);
327 static void rt_set_idleref(struct rtentry *);
328 static void rt_clear_idleref(struct rtentry *);
329 static void rt_str4(struct rtentry *, char *, uint32_t, char *, uint32_t);
330 static void rt_str6(struct rtentry *, char *, uint32_t, char *, uint32_t);
331 static boolean_t route_ignore_protocol_cloning_for_dst(struct rtentry *, struct sockaddr *);
391 #define RT(r) ((struct rtentry *)r)
449 size = sizeof(struct rtentry); in route_init()
463 rt_primary_default(struct rtentry *rt, struct sockaddr *dst) in rt_primary_default()
835 struct rtentry *rt = (struct rtentry *)rn; in rn_match_ifscope()
889 struct rtentry *rt; in rtalloc_ign_common_locked()
925 static struct rtentry *
931 struct rtentry *
939 route_ignore_protocol_cloning_for_dst(struct rtentry *rt, struct sockaddr *dst) in route_ignore_protocol_cloning_for_dst()
966 struct rtentry *
971 struct rtentry *rt, *newrt = NULL; in rtalloc1_common_locked()
1058 struct rtentry *defrt = NULL; in rtalloc1_common_locked()
1109 struct rtentry *
1112 struct rtentry *entry; in rtalloc1()
1120 struct rtentry *
1124 struct rtentry *entry; in rtalloc1_scoped()
1137 rtfree_locked(struct rtentry *rt) in rtfree_locked()
1143 rtfree_common(struct rtentry *rt, boolean_t locked) in rtfree_common()
1226 struct rtentry *rt_parent; in rtfree_common()
1314 rtfree(struct rtentry *rt) in rtfree()
1325 rtunref(struct rtentry *p) in rtunref()
1369 rtref(struct rtentry *p) in rtref()
1406 rtsetifa(struct rtentry *rt, struct ifaddr *ifa) in rtsetifa()
1442 struct rtentry **rtp) in rtredirect()
1444 struct rtentry *rt = NULL; in rtredirect()
1650 struct rtentry *rt = NULL; in ifa_ifwithroute_common_locked()
1805 struct rtentry *rt0;
1811 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest_locked()
1820 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_scoped_locked()
1850 struct rtentry **ret_nrt, unsigned int ifscope) in rtrequest_common_locked()
1853 struct rtentry *rt; in rtrequest_common_locked()
1861 void (*ifa_rtrequest)(int, struct rtentry *, struct sockaddr *); in rtrequest_common_locked()
1949 struct rtentry *gwrt = NULL; in rtrequest_common_locked()
1963 rt = (struct rtentry *)rn; in rtrequest_common_locked()
2288 struct rtentry *rt2; in rtrequest_common_locked()
2462 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt) in rtrequest()
2474 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, in rtrequest_scoped()
2496 struct rtentry *rt = (struct rtentry *)rn; in rt_fixdelete()
2497 struct rtentry *rt0 = vp; in rt_fixdelete()
2533 struct rtentry *rt = (struct rtentry *)rn; in rt_fixchange()
2535 struct rtentry *rt0 = ap->rt0; in rt_fixchange()
2624 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) in rt_setgate()
2707 struct rtentry *gwrt; in rt_setgate()
2897 rt_set_gwroute(struct rtentry *rt, struct sockaddr *dst, struct rtentry *gwrt) in rt_set_gwroute()
2913 struct rtentry *ogwrt = rt->rt_gwroute; in rt_set_gwroute()
3080 static struct rtentry *
3200 struct rtentry *rt = RT(rn); in rt_lookup_common()
3254 struct rtentry *rt = RT(rn); in rt_lookup_common()
3315 struct rtentry *rt = RT(rn); in rt_lookup_common()
3331 struct rtentry *
3339 struct rtentry *
3348 rt_validate(struct rtentry *rt) in rt_validate()
3394 struct rtentry *rt = NULL; in rtinit_locked()
3583 (int, struct rtentry *, struct sockaddr *); in rtinit_locked()
3701 rt_set_idleref(struct rtentry *rt) in rt_set_idleref()
3723 rt_clear_idleref(struct rtentry *rt) in rt_clear_idleref()
3738 rt_set_proxy(struct rtentry *rt, boolean_t set) in rt_set_proxy()
3767 rte_lock_init(struct rtentry *rt) in rte_lock_init()
3773 rte_lock_destroy(struct rtentry *rt) in rte_lock_destroy()
3780 rt_lock(struct rtentry *rt, boolean_t spin) in rt_lock()
3794 rt_unlock(struct rtentry *rt) in rt_unlock()
3807 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_lock_debug()
3819 RT_LOCK_ASSERT_HELD((struct rtentry *)rte); in rte_unlock_debug()
3826 static struct rtentry *
3833 return (struct rtentry *)zalloc(rte_zone); in rte_alloc()
3837 rte_free(struct rtentry *p) in rte_free()
3900 static inline struct rtentry *
3913 return (struct rtentry *)rte; in rte_alloc_debug()
3917 rte_free_debug(struct rtentry *p) in rte_free_debug()
3934 bzero((caddr_t)p, offsetof(struct rtentry, rt_lock)); in rte_free_debug()
4119 route_to_gwroute(const struct sockaddr *net_dest, struct rtentry *hint0, in route_to_gwroute()
4120 struct rtentry **out_route) in route_to_gwroute()
4123 struct rtentry *rt = hint0, *hint = hint0; in route_to_gwroute()
4169 struct rtentry *gwrt = rt->rt_gwroute; in route_to_gwroute()
4258 struct rtentry *prt = hint->rt_parent; in route_to_gwroute()
4320 rt_revalidate_gwroute(struct rtentry *rt, struct rtentry *gwrt) in rt_revalidate_gwroute()
4364 rt_str4(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str4()
4395 rt_str6(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str6()
4426 rt_str(struct rtentry *rt, char *ds, uint32_t dslen, char *gs, uint32_t gslen) in rt_str()
4447 route_event_init(struct route_event *p_route_ev, struct rtentry *rt, in route_event_init()
4448 struct rtentry *gwrt, int route_ev_code) in route_event_init()
4469 struct rtentry *rt = p_ev->rt_ev_arg.rt; in route_event_callback()
4496 struct rtentry *rt = (struct rtentry *)rn; in route_event_walktree()
4497 struct rtentry *gwrt = p_route_ev->rt; in route_event_walktree()
4528 route_event_enqueue_nwk_wq_entry(struct rtentry *rt, struct rtentry *gwrt, in route_event_enqueue_nwk_wq_entry()