/frameworks/base/core/java/android/net/ |
H A D | RouteInfo.java | 40 * 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 D | StaticIpConfiguration.java | 51 public InetAddress gateway; field in class:StaticIpConfiguration 64 gateway = source.gateway; 72 gateway = null; 80 * default gateway is not covered by the directly-connected route, it will also contain a host 81 * route to the gateway as well. This configuration is arguably invalid, but it used to work 89 if (gateway != null && !connectedRoute.matches(gateway)) { 90 routes.add(RouteInfo.makeHostRoute(gateway, iface)); 93 if (gateway ! [all...] |
H A D | DhcpInfo.java | 27 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 D | DhcpResults.java | 72 if (gateway == null) gateway = orig.gateway; 165 gateway = NetworkUtils.numericToInetAddress(addrString);
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | IpConfigStore.java | 57 protected static final String GATEWAY_KEY = "gateway"; 89 if (staticIpConfiguration.gateway != null) { 92 out.writeInt(1); // Have a gateway. 93 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); 219 InetAddress gateway = null; 222 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); 223 if (staticIpConfiguration.gateway == null) { 224 staticIpConfiguration.gateway = gateway; 226 loge("Duplicate gateway [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 36 const char *gateway, 47 const char *gateway, 102 char gateway[PROPERTY_VALUE_MAX]; local 118 result = ::dhcp_do_request_renew(nameStr, ipaddr, gateway, &prefixLength, 121 result = ::dhcp_do_request(nameStr, ipaddr, gateway, &prefixLength, 139 // set the gateway 141 dhcpResultsFieldIds.setGateway, env->NewStringUTF(gateway));
|
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 562 InetAddress gateway = null; // aka router 680 gateway = readIpAddress(packet); 794 newPacket.mGateway = gateway; 833 InetAddress gateway, List<InetAddress> dnsServers, 837 pkt.mGateway = gateway; 853 InetAddress gateway, List<InetAddress> dnsServers, 857 pkt.mGateway = gateway; 830 buildOfferPacket(int encap, int transactionId, boolean broadcast, InetAddress serverIpAddr, InetAddress clientIpAddr, byte[] mac, Integer timeout, InetAddress netMask, InetAddress bcAddr, InetAddress gateway, List<InetAddress> dnsServers, InetAddress dhcpServerIdentifier, String domainName) argument 850 buildAckPacket(int encap, int transactionId, boolean broadcast, InetAddress serverIpAddr, InetAddress clientIpAddr, byte[] mac, Integer timeout, InetAddress netMask, InetAddress bcAddr, InetAddress gateway, List<InetAddress> dnsServers, InetAddress dhcpServerIdentifier, String domainName) argument
|
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | RouteInfoTest.java | 46 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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | WifiConfigurationHelper.java | 163 * 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/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 843 throw new IllegalStateException("Unable to find IPv4 default gateway"); 882 final String gateway = ipv4DefaultRoute.getGateway().getHostAddress(); 925 profile.ipsecSecret, profile.username, profile.password, "", gateway, 931 caCert, serverCert, profile.username, profile.password, "", gateway, 937 caCert, serverCert, profile.username, profile.password, "", gateway,
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiServiceImpl.java | 1140 if (dhcpResults.gateway != null) { 1141 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway);
|
H A D | WifiStateMachine.java | 4127 InetAddress gateway = route.getGateway(); 4128 if (gateway instanceof Inet4Address) { 4131 + gateway.getHostAddress()); 4133 address = macAddressFromRoute(gateway.getHostAddress()); 4134 /* The gateway's MAC address is known */ 4138 reachable = gateway.isReachable(timeout); 4141 + gateway.getHostAddress()); 4146 address = macAddressFromRoute(gateway.getHostAddress()); 4149 + gateway.getHostAddress() + " found " + address); 4566 * so as to record MAC address of default gateway [all...] |
H A D | WifiConfigStore.java | 1927 String gateway = key.replace(DEFAULT_GW_KEY, ""); 1928 gateway = gateway.replace(SEPARATOR_KEY, ""); 1929 config.defaultGwMacAddress = gateway; 3019 // hoping that WifiConfigurations are indeed behind the same gateway.
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
H A D | EthernetNetworkFactory.java | 225 staticConfig.gateway != null &&
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkManagementService.java | 757 * Format: "NNN Route <updated|removed> <dst> [via <gateway] [dev <iface>]" 777 valid = false; // Duplicate gateway. 786 InetAddress gateway = null; 787 if (via != null) gateway = InetAddress.parseNumericAddress(via); 788 RouteInfo route = new RouteInfo(new IpPrefix(cooked[3]), gateway, dev); 968 // create triplet: interface dest-ip-addr/prefixlength gateway-ip-addr 1027 // iface dest-addr gateway-addr flags refcnt use metric netmask mtu window IRTT 1063 // dest-addr prefixlength ?? ?? gateway-addr ?? ?? ?? ?? iface 2038 // create triplet: interface dest-ip-addr/prefixlength gateway-ip-addr
|