Searched refs:gateway (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/core/java/android/net/
H A DRouteInfo.java40 * implied by the gateway IP address.
41 * <li>a gateway {@link InetAddress} indicating the next hop to use. If this is {@code null} it
45 * Either the destination or the gateway may be {@code null}, but not both. If the
46 * destination and gateway are both specified, they must be of the same address family
56 * The gateway address for this route.
88 * If destination is null, then gateway must be specified and the
90 * if the gateway is an instance of {@link Inet4Address}, or the IPv6 default
91 * route <code>::/0</code> if gateway is an instance of
94 * destination and gateway may not both be null.
97 * @param gateway th
102 RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) argument
163 RouteInfo(IpPrefix destination, InetAddress gateway, String iface) argument
170 RouteInfo(LinkAddress destination, InetAddress gateway, String iface) argument
191 RouteInfo(IpPrefix destination, InetAddress gateway) argument
200 RouteInfo(LinkAddress destination, InetAddress gateway) argument
211 RouteInfo(InetAddress gateway) argument
251 makeHostRoute(InetAddress host, InetAddress gateway, String iface) argument
[all...]
H A DStaticIpConfiguration.java50 public InetAddress gateway; field in class:StaticIpConfiguration
63 gateway = source.gateway;
71 gateway = null;
79 * default gateway is not covered by the directly-connected route, it will also contain a host
80 * route to the gateway as well. This configuration is arguably invalid, but it used to work
88 if (gateway != null && !connectedRoute.matches(gateway)) {
89 routes.add(RouteInfo.makeHostRoute(gateway, iface));
92 if (gateway !
[all...]
H A DDhcpInfo.java27 public int gateway; field in class:DhcpInfo
43 gateway = source.gateway;
56 str.append(" gateway "); putAddress(str, gateway);
78 dest.writeInt(gateway);
92 info.gateway = in.readInt();
H A DDhcpResults.java159 gateway = NetworkUtils.numericToInetAddress(addrString);
/frameworks/base/services/core/java/com/android/server/net/
H A DIpConfigStore.java51 protected static final String GATEWAY_KEY = "gateway";
87 if (staticIpConfiguration.gateway != null) {
90 out.writeInt(1); // Have a gateway.
91 out.writeUTF(staticIpConfiguration.gateway.getHostAddress());
217 InetAddress gateway = null;
220 gateway = NetworkUtils.numericToInetAddress(in.readUTF());
221 if (staticIpConfiguration.gateway == null) {
222 staticIpConfiguration.gateway = gateway;
224 loge("Duplicate gateway
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DStaticIpConfigurationTest.java51 assertNull(s.gateway);
71 s.gateway = GATEWAY;
109 s.gateway = GATEWAY;
138 s.gateway = DNS2;
160 s.gateway = GATEWAY;
165 s.gateway = OFFLINKGATEWAY;
188 s.gateway = null;
194 // tell if the gateway is off-link or not and we don't add a host route. This isn't a real
196 s.gateway = OFFLINKGATEWAY;
H A DRouteInfoTest.java46 fail("Expected RuntimeException: destination and gateway null");
60 // Null gateway sets gateway to unspecified address (why?).
76 public PatchedRouteInfo(IpPrefix destination, InetAddress gateway, String iface) {
77 mRouteInfo = new RouteInfo(destination, gateway, iface);
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkDiagnostics.java193 InetAddress gateway = route.getGateway();
194 prepareIcmpMeasurement(gateway);
196 prepareExplicitSourceIcmpMeasurements(gateway);
H A DVpn.java1269 throw new IllegalStateException("Unable to find IPv4 default gateway");
1306 final String gateway = ipv4DefaultRoute.getGateway().getHostAddress();
1349 profile.ipsecSecret, profile.username, profile.password, "", gateway,
1355 caCert, serverCert, profile.username, profile.password, "", gateway,
1361 caCert, serverCert, profile.username, profile.password, "", gateway,
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DWifiConfigurationHelper.java163 * static IP settings are also supported. If the field "ip" is set, then the fields "gateway",
246 staticIpConfig.gateway = getInetAddress(jsonConfig.getString("gateway"));
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
H A DDhcpPacketTest.java260 private void assertDhcpResults(String ipAddress, String gateway, String dnsServersString, argument
264 assertEquals(v4Address(gateway), dhcpResults.gateway);
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java245 staticConfig.gateway != null &&
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiServiceImpl.java1193 if (dhcpResults.gateway != null) {
1194 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway);
H A DWifiStateMachine.java3324 InetAddress gateway = route.getGateway();
3325 if (gateway instanceof Inet4Address) {
3328 + gateway.getHostAddress());
3330 address = macAddressFromRoute(gateway.getHostAddress());
3331 /* The gateway's MAC address is known */
3335 reachable = gateway.isReachable(timeout);
3338 + gateway.getHostAddress());
3343 address = macAddressFromRoute(gateway.getHostAddress());
3346 + gateway.getHostAddress() + " found " + address);
3878 * so as to record MAC address of default gateway
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java918 * Format: "NNN Route <updated|removed> <dst> [via <gateway] [dev <iface>]"
938 valid = false; // Duplicate gateway.
947 InetAddress gateway = null;
948 if (via != null) gateway = InetAddress.parseNumericAddress(via);
949 RouteInfo route = new RouteInfo(new IpPrefix(cooked[3]), gateway, dev);
1148 // create triplet: interface dest-ip-addr/prefixlength gateway-ip-addr
2641 // create triplet: interface dest-ip-addr/prefixlength gateway-ip-addr
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpPacket.java1139 results.gateway = mGateways.get(0);

Completed in 679 milliseconds