Lines Matching refs:gateway
641 log(LOG_DEBUG, "arp_rtrequest: bad gateway value\n");
843 why = "gateway route is not ours";
901 struct sockaddr_dl *gateway;
913 * If we were given a route, verify the route and grab the gateway
996 gateway = SDL(route->rt_gateway);
1001 route->rt_expire > timenow) && gateway != NULL &&
1002 gateway->sdl_family == AF_LINK && gateway->sdl_alen != 0 &&
1004 bcopy(gateway, ll_dest, MIN(gateway->sdl_len, ll_dest_len));
1012 gateway->sdl_alen = 0;
1104 struct sockaddr_dl *gateway, *target_hw = NULL;
1298 gateway = SDL(route->rt_gateway);
1299 if (route->rt_ifp != ifp && gateway->sdl_alen != 0
1300 && (gateway->sdl_alen != sender_hw->sdl_alen
1301 || bcmp(CONST_LLADDR(gateway), CONST_LLADDR(sender_hw),
1302 gateway->sdl_alen) != 0)) {
1386 gateway = SDL(route->rt_gateway);
1422 gateway = SDL(route->rt_gateway);
1423 if ((gateway->sdl_alen != 0 && route->rt_parent &&
1448 gateway->sdl_index = ifp->if_index;
1455 /* Refresh gateway pointer */
1456 gateway = SDL(route->rt_gateway);
1461 if (gateway->sdl_alen && bcmp(LLADDR(gateway), CONST_LLADDR(sender_hw), gateway->sdl_alen)) {
1467 sdl_addr_to_hex(gateway, buf, sizeof(buf)),
1485 /* Copy the sender hardware address in to the route's gateway address */
1486 gateway->sdl_alen = sender_hw->sdl_alen;
1487 bcopy(CONST_LLADDR(sender_hw), LLADDR(gateway), gateway->sdl_alen);
1499 /* cache the gateway (sender HW) address */
1500 arp_llreach_alloc(route, ifp, LLADDR(gateway), gateway->sdl_alen,