Lines Matching defs:gateway
257 log(LOG_DEBUG, "arp_rtrequest: bad gateway value\n");
414 why = "gateway route is not ours";
435 * arp_route_to_gateway_route will find the gateway route for a given route.
438 * If the route goes through a gateway, get the route to the gateway.
439 * If the gateway route is down, look it up again.
472 * We need the gateway route. If it is NULL or down,
519 struct sockaddr_dl *gateway;
530 * If we were given a route, verify the route and grab the gateway
583 gateway = SDL(route->rt_gateway);
586 gateway != NULL && gateway->sdl_family == AF_LINK && gateway->sdl_alen != 0) {
587 bcopy(gateway, ll_dest, MIN(gateway->sdl_len, ll_dest_len));
642 struct sockaddr_dl *gateway;
736 gateway = SDL(route->rt_gateway);
737 if (route->rt_ifp != ifp && gateway->sdl_alen != 0
738 && (gateway->sdl_alen != sender_hw->sdl_alen
739 || bcmp(CONST_LLADDR(gateway), CONST_LLADDR(sender_hw),
740 gateway->sdl_alen) != 0)) {
793 gateway = SDL(route->rt_gateway);
816 if (gateway->sdl_alen != 0 && route->rt_parent &&
824 gateway->sdl_index = ifp->if_index;
828 if (gateway->sdl_alen && bcmp(LLADDR(gateway), CONST_LLADDR(sender_hw), gateway->sdl_alen)) {
834 sdl_addr_to_hex(gateway, buf, sizeof(buf)),
852 /* Copy the sender hardware address in to the route's gateway address */
853 gateway->sdl_alen = sender_hw->sdl_alen;
854 bcopy(CONST_LLADDR(sender_hw), LLADDR(gateway), gateway->sdl_alen);