Lines Matching refs:rt
2333 struct rtentry *rt = NULL;
2395 rt = in6_rtalloc1((struct sockaddr *)&sin6, 0, 0UL, RT_DEFAULT_FIB);
2396 if (rt) {
2397 if (rt->rt_gateway == NULL ||
2398 rt->rt_gateway->sa_family != AF_INET6) {
2399 RTFREE_LOCKED(rt);
2407 gw6 = &(((struct sockaddr_in6 *)rt->rt_gateway)->sin6_addr);
2409 RTFREE_LOCKED(rt);
2425 RTFREE_LOCKED(rt);
2426 rt = NULL;
2523 icmp6_redirect_output(struct mbuf *m0, struct rtentry *rt)
2546 if (!m0 || !rt || !(rt->rt_flags & RTF_UP) || !(ifp = rt->rt_ifp))
2580 M_SETFIB(m, rt->rt_fibnum);
2602 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) {
2604 sin6 = (struct sockaddr_in6 *)rt->rt_gateway;
2628 if (rt->rt_flags & RTF_GATEWAY) {