/dragonfly/contrib/dhcpcd/src/ |
H A D | route.c | 270 sa_addrtop(&rt->rt_gateway, gateway, sizeof(gateway)); in rt_desc() 271 gateway_unspec = sa_is_unspecified(&rt->rt_gateway); in rt_desc() 315 rt->rt_gateway.sa_family != af) in rt_headclear0() 541 sa_cmp(&ort->rt_gateway, &nrt->rt_gateway) == 0))) in rt_add() 556 sa_cmp(&ort->rt_gateway, &nrt->rt_gateway) == 0) in rt_add() 662 sa_cmp(&r1->rt_gateway, &r2->rt_gateway) == 0); in rt_cmp() 741 if_missfilter(rt->rt_ifp, &rt->rt_gateway) == -1) in rt_build() 746 (rt->rt_gateway.sa_family != af && in rt_build() 747 rt->rt_gateway.sa_family != AF_UNSPEC)) in rt_build() 771 (rt->rt_gateway.sa_family != af && in rt_build() [all …]
|
H A D | ipv4.c | 318 rt->rt_gateway.sa_family = AF_UNSPEC; in inet_dhcproutes() 325 if (sa_is_unspecified(&r->rt_gateway)) in inet_dhcproutes() 349 sa_in_init(&rt->rt_gateway, &state->addr->brd); in inet_dhcproutes() 398 sa_is_unspecified(&rt->rt_gateway)) in inet_routerhostroute() 400 gateway = satosin(&rt->rt_gateway); in inet_routerhostroute() 406 if (sa_cmp(&rth->rt_dest, &rt->rt_gateway) == 0) in inet_routerhostroute() 438 sa_addrtop(&rt->rt_gateway, in inet_routerhostroute() 452 sa_addrtop(&rt->rt_gateway, buf, sizeof(buf))); in inet_routerhostroute() 462 sa_in_init(&rth->rt_gateway, &in); in inet_routerhostroute()
|
H A D | route.h | 87 #define rt_gateway rt_ss_gateway.sa macro
|
H A D | ipv4ll.c | 112 sa_in_init(&rt->rt_gateway, &in); in ipv4ll_subnetroute() 136 sa_in_init(&rt->rt_gateway, &in); in ipv4ll_defaultroute()
|
H A D | if-bsd.c | 715 gateway_unspec = sa_is_unspecified(&rt->rt_gateway); in if_route() 723 !sa_is_loopback(&rt->rt_gateway)) in if_route() 797 if_copysa(&gateway.sa, &rt->rt_gateway); in if_route() 892 if_copysa(&rt->rt_gateway, rti_info[RTAX_GATEWAY]); in if_copyrt()
|
H A D | ipv6.c | 2265 sa_in6_init(&rt->rt_gateway, &in6addr_loopback); in inet6_makeprefix() 2268 sa_in6_init(&rt->rt_gateway, &rap->from); in inet6_makeprefix() 2270 rt->rt_gateway.sa_family = AF_UNSPEC; in inet6_makeprefix() 2284 sa_in6_init(&rt->rt_gateway, &rap->from); in inet6_makerouter()
|
/dragonfly/sys/netinet6/ |
H A D | in6_rmx.c | 182 rt2->rt_gateway && in in6_addroute() 183 rt2->rt_gateway->sa_family == AF_LINK) { in in6_addroute() 185 rt2->rt_gateway, rt_mask(rt2), in in6_addroute() 209 rt2->rt_gateway && in in6_addroute() 210 rt2->rt_gateway->sa_family == AF_LINK && in in6_addroute() 289 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, rt_mask(rt), in in6_clsroute() 323 err = rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_rtqkill()
|
H A D | nd6.c | 108 (rt)->rt_gateway->sa_family == AF_LINK && \ 848 if (rt && rt->rt_gateway && in nd6_purge() 849 rt->rt_gateway->sa_family == AF_LINK) { in nd6_purge() 850 sdl = (struct sockaddr_dl *)rt->rt_gateway; in nd6_purge() 1148 rt->rt_gateway->sa_family != AF_LINK) { in nd6_nud_hint() 1176 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest() 1235 gate = rt->rt_gateway; in nd6_rtrequest() 1741 if (!rt->rt_gateway) in nd6_cache_lladdr() 1743 if (rt->rt_gateway->sa_family != AF_LINK) in nd6_cache_lladdr() 1745 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr() [all …]
|
H A D | nd6_rtr.c | 435 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; 1821 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) in rt6_deleteroute() 1824 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) in rt6_deleteroute() 1842 return (rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, rt_mask(rt), in rt6_deleteroute()
|
H A D | icmp6.c | 2229 if (rt->rt_gateway == NULL || in icmp6_redirect_input() 2230 rt->rt_gateway->sa_family != AF_INET6) { in icmp6_redirect_input() 2239 gw6 = &(((struct sockaddr_in6 *)rt->rt_gateway)->sin6_addr); in icmp6_redirect_input() 2435 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output() 2437 sin6 = (struct sockaddr_in6 *)rt->rt_gateway; in icmp6_redirect_output() 2503 (rt_router->rt_gateway->sa_family == AF_LINK) && in icmp6_redirect_output() 2504 (sdl = (struct sockaddr_dl *)rt_router->rt_gateway) && in icmp6_redirect_output()
|
H A D | ip6_forward.c | 232 dst = (struct sockaddr_in6 *)rt->rt_gateway; in ip6_forward()
|
H A D | nd6_nbr.c | 298 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input() 299 proxydl = SDL(rt->rt_gateway); in nd6_ns_input() 701 ((sdl = SDL(rt->rt_gateway)) == NULL)) in nd6_na_input()
|
H A D | in6_pcb.c | 775 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in in6_losing() 779 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_losing()
|
H A D | in6_ifattach.c | 848 rt->rt_gateway, rt_mask(rt), rt->rt_flags, 0); in in6_ifdetach_dispatch()
|
/dragonfly/sys/netinet/ |
H A D | in_rmx.c | 175 oldrt->rt_gateway && in in_addroute() 176 oldrt->rt_gateway->sa_family == AF_LINK) { in in_addroute() 178 oldrt->rt_gateway, rt_mask(oldrt), in in_addroute() 263 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, rt_mask(rt), in in_closeroute() 295 err = rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in_rtqkill() 546 err = rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in_ifadownkill()
|
H A D | if_ether.c | 225 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest() 249 gate = rt->rt_gateway; in arp_rtrequest() 551 sdl = SDL(rt->rt_gateway); in arpresolve() 723 if (la && (rt = la->la_rt) && (sdl = SDL(rt->rt_gateway))) { in arp_update_oncpu() 1236 sdl = SDL(rt->rt_gateway); in in_arpreply() 1280 sdl = SDL(rt->rt_gateway); in arptfree() 1329 else if (rt->rt_gateway->sa_family != AF_LINK) in arplookup() 1341 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arplookup()
|
H A D | ip_flow.c | 281 dst = rt->rt_gateway; in ipflow_fastforward()
|
H A D | in_pcb.c | 1422 rtinfo.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in in_losing() 1427 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in_losing()
|
/dragonfly/sys/net/ |
H A D | route.c | 364 (!sa_equal(src, rt->rt_gateway) || rt->rt_ifa != ifa)) { in rtredirect_oncpu() 885 rtinfo->rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rtrequest1() 956 oldrt->rt_gateway, in rtrequest1() 1202 rtrequest(RTM_DELETE, rt_key(rt0), rt0->rt_gateway, in rt_setgate() 1213 if (rt->rt_gateway == NULL || in rt_setgate() 1214 glen > RT_ROUNDUP(rt->rt_gateway->sa_len)) { in rt_setgate() 1226 rt->rt_gateway = (struct sockaddr *)(space + dlen); in rt_setgate() 1227 bcopy(gate, rt->rt_gateway, glen); in rt_setgate() 1323 up_rt->rt_gwroute = rtlookup(up_rt->rt_gateway); in rt_llroute() 1328 up_rt->rt_gwroute = rtlookup(up_rt->rt_gateway); in rt_llroute() [all …]
|
H A D | route.h | 146 struct sockaddr *rt_gateway; /* value */ member
|
H A D | rtsock.c | 602 rtinfo->rti_gateway = rt->rt_gateway; in _fillrtmsg() 1294 rtinfo.rti_gateway = rt->rt_gateway; in rt_rtmsg() 1662 rtinfo->rti_gateway = rt->rt_gateway; in rttable_entry_rtinfo()
|
/dragonfly/sys/netproto/mpls/ |
H A D | mpls_input.c | 207 dst = cache_rt->ro_rt->rt_gateway; in mpls_forward()
|
/dragonfly/sys/netgraph7/netflow/ |
H A D | netflow.c | 277 rt->rt_gateway->sa_family == AF_INET) in hash_insert() 279 ((struct sockaddr_in *)(rt->rt_gateway))->sin_addr; in hash_insert()
|
/dragonfly/usr.bin/netstat/ |
H A D | route.c | 310 bp = fmt_sockaddr(kgetsa(rt->rt_gateway), NULL, RTF_HOST); in size_cols_rtentry() 774 p_sockaddr(kgetsa(rt->rt_gateway), NULL, RTF_HOST, wid_gw); in p_rtentry()
|
/dragonfly/sys/net/gre/ |
H A D | if_gre.c | 763 ((struct sockaddr_in *)(ro->ro_rt->rt_gateway))->sin_addr, abuf)); in gre_compute_route()
|