Lines Matching defs:gateway

165   IPAddress gateway(properties.address_family);
166 if (!properties.gateway.empty() &&
167 !gateway.SetAddressFromString(properties.gateway)) {
168 LOG(ERROR) << "Gateway address " << properties.gateway << " is invalid";
179 // such as eth0 or wan0. The excluded IPs are pinned to the gateway of
195 if (!PinHostRoute(trusted_ip, gateway)) {
228 if (!FixGatewayReachability(local, &peer, &gateway, trusted_ip)) {
244 << " gateway=" << gateway.ToString();
247 if (gateway.IsValid() && properties.default_route) {
248 routing_table_->SetDefaultRoute(interface_index_, gateway,
298 gateway_ = gateway;
451 IPAddress* gateway,
456 << ", gateway " << gateway->ToString()
458 if (!gateway->IsValid()) {
459 LOG(WARNING) << "No gateway address was provided for this connection.";
464 if (!gateway->HasSameAddressAs(*peer)) {
466 << gateway->ToString()
471 if (gateway->HasSameAddressAs(trusted_ip)) {
473 // the gateway IP address isn't of significance. As opposed to
474 // broadcast networks, we never ARP for the gateway IP address,
477 // gateway or peer wreaks havoc on the routing rules, we choose
478 // not to supply a gateway address. Here's an example:
483 // In this example, a client connects to a VPN gateway on its
490 // Client default gateway: 10.0.1.25
493 // 10.0.1.25 is now listed as the default gateway and interface
495 // order to route tunneled packets to the VPN gateway we must
508 // To solve this problem, we reset the peer and gateway
510 // underlying routing task. A gateway route can be specified
518 LOG(INFO) << "Removing gateway and peer addresses to preserve "
521 gateway->SetAddressToDefault();
526 if (local.CanReachAddress(*gateway)) {
531 << gateway->ToString()
535 IPAddress gateway_with_max_prefix(*gateway);
538 IPAddress default_address(gateway->family());
549 LOG(ERROR) << "Unable to add link-scoped route to gateway.";
553 LOG(WARNING) << "Mitigating this by creating a link route to the gateway.";
560 // index. This way all non-default routes (even to the same gateway IP) end
566 const IPAddress& gateway) {
573 if (!gateway.IsValid()) {
575 // a gateway route that will interfere with our primary connection, so
577 LOG(WARNING) << "No gateway -- unable to pin host route.";
627 // Ensure that the gateway for the lower connection remains reachable,
633 // If there is no gateway, don't try to create a route to it.