Lines Matching refs:gateway

1100 		 * This also frees the gateway, as they are always malloc'd
1224 * destination to go through the given gateway.
1229 rtredirect(struct ifnet *ifp, struct sockaddr *dst, struct sockaddr *gateway,
1257 * Verify the gateway is directly reachable; if scoped routing
1261 if ((ifa = ifa_ifwithnet_scoped(gateway, ifscope)) == NULL) {
1285 if ((ifa = ifa_ifwithaddr(gateway))) {
1329 gateway, netmask, flags, NULL, ifscope);
1333 * Smash the current notion of the gateway to
1340 * add the key and gateway (in one malloc'd chunk).
1342 error = rt_setgate(rt, rt_key(rt), gateway);
1369 info.rti_info[RTAX_GATEWAY] = gateway;
1395 const struct sockaddr *gateway)
1400 ifa = ifa_ifwithroute_locked(flags, dst, gateway);
1408 const struct sockaddr *gateway)
1411 gateway, IFSCOPE_NONE));
1416 const struct sockaddr *gateway, unsigned int ifscope)
1423 return (ifa_ifwithroute_common_locked(flags, dst, gateway, ifscope));
1475 * or host, the gateway may still be on the
1514 * If we are adding a gateway, it is quite possible that the
1515 * routing table has a static entry in place for the gateway,
1560 rtrequest_locked(int req, struct sockaddr *dst, struct sockaddr *gateway,
1563 return (rtrequest_common_locked(req, dst, gateway, netmask,
1569 struct sockaddr *gateway, struct sockaddr *netmask, int flags,
1577 return (rtrequest_common_locked(req, dst, gateway, netmask,
1598 struct sockaddr *gateway, struct sockaddr *netmask, int flags,
1805 gateway = rt->rt_gateway;
1857 if ((flags & RTF_GATEWAY) && !gateway)
1858 panic("rtrequest: RTF_GATEWAY but no gateway");
1862 gateway, ifscope);
1864 ifa = ifa_ifwithroute_locked(flags, dst0, gateway);
1880 * Add the gateway. Possibly re-malloc-ing the storage for it
1883 if ((error = rt_setgate(rt, dst, gateway)) != 0) {
1956 /* Clear gateway route */
2066 rtrequest(int req, struct sockaddr *dst, struct sockaddr *gateway,
2072 error = rtrequest_locked(req, dst, gateway, netmask, flags, ret_nrt);
2078 rtrequest_scoped(int req, struct sockaddr *dst, struct sockaddr *gateway,
2085 error = rtrequest_scoped_locked(req, dst, gateway, netmask, flags,
2212 * for rt_key and rt_gateway in the event the gateway portion changes.
2214 * of rt_gateway; this rounding-up would help ensure that the gateway
2221 * Sets the gateway and/or gateway route portion of a route; may be
2222 * called on an existing route to modify the gateway portion. Both
2263 * A (cloning) network route with the destination equal to the gateway
2274 * A host route with the destination equal to the gateway
2302 * to the next-hop gateway and store it in rt_gwroute.
2335 * through itself as a gateway. This is obviously mandatory
2337 * the gateway must already be present in the system in order
2338 * for the gateway to be referred to by another route.
2348 * If scoped, the gateway route must use the same interface;
2371 /* Set gateway route; callee adds ref to gwrt if non-NULL */
2386 * Tell the kernel debugger about the new default gateway
2387 * if the gateway route uses the primary interface, or
2389 * default gateway is installed (similar to how the system
2407 * Prepare to store the gateway in rt_gateway. Both dst and gateway
2419 /* Clear gateway route */
2439 * Copy the new gateway value into the memory chunk.
2493 * Get rid of existing gateway route; if rt_gwroute is already
2509 * And associate the new gateway route.
2620 * the same destination (but not necessarily the same gateway) to exist in
3318 * route_to_gwroute will find the gateway route for a given route.
3321 * If the route goes through a gateway, get the route to the gateway.
3322 * If the gateway route is down, look it up again.
3345 * Next hop determination. Because we may involve the gateway route
3348 * to the original route or to the gateway route, this routine takes
3386 /* If there's no gateway rt, look it up */
3416 * to gateway, circular route, or if the
3417 * gateway portion of "rt" has changed.
3436 * Set gateway route; callee adds ref to gwrt;