Lines Matching refs:rt
84 struct rtentry *rt; in rn_mpath_count() local
87 rt = (struct rtentry *)rn; in rn_mpath_count()
88 i += rt->rt_weight; in rn_mpath_count()
95 rt_mpath_matchgate(struct rtentry *rt, struct sockaddr *gate) in rt_mpath_matchgate() argument
99 if (!gate || !rt->rt_gateway) in rt_mpath_matchgate()
103 rn = (struct radix_node *)rt; in rt_mpath_matchgate()
105 rt = (struct rtentry *)rn; in rt_mpath_matchgate()
112 if (rt->rt_gateway->sa_family == AF_LINK) { in rt_mpath_matchgate()
113 if (!memcmp(rt->rt_ifa->ifa_addr, gate, gate->sa_len)) in rt_mpath_matchgate()
122 if (rt->rt_gateway->sa_len == gate->sa_len && in rt_mpath_matchgate()
123 !memcmp(rt->rt_gateway, gate, gate->sa_len)) in rt_mpath_matchgate()
135 rt_mpath_deldup(struct rtentry *headrt, struct rtentry *rt) in rt_mpath_deldup() argument
139 if (!headrt || !rt) in rt_mpath_deldup()
144 if (tt == (struct radix_node *)rt) { in rt_mpath_deldup()
162 rt_mpath_conflict(struct radix_node_head *rnh, struct rtentry *rt, in rt_mpath_conflict() argument
168 rn = (struct radix_node *)rt; in rt_mpath_conflict()
169 rn1 = rnh->rnh_lookup(rt_key(rt), netmask, rnh); in rt_mpath_conflict()
182 if (rt1->rt_ifa->ifa_addr->sa_len != rt->rt_ifa->ifa_addr->sa_len || in rt_mpath_conflict()
183 bcmp(rt1->rt_ifa->ifa_addr, rt->rt_ifa->ifa_addr, in rt_mpath_conflict()
187 if (rt1->rt_gateway->sa_len != rt->rt_gateway->sa_len || in rt_mpath_conflict()
188 bcmp(rt1->rt_gateway, rt->rt_gateway, in rt_mpath_conflict()
205 struct rtentry *rt; in rtalloc_mpath_fib() local
232 for (weight = abs((int32_t)hash), rt = ro->ro_rt; in rtalloc_mpath_fib()
233 weight >= rt->rt_weight && rn; in rtalloc_mpath_fib()
234 weight -= rt->rt_weight) { in rtalloc_mpath_fib()
240 rt = (struct rtentry *)rn; in rtalloc_mpath_fib()
250 if (ro->ro_rt != rt) { in rtalloc_mpath_fib()