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

/frameworks/base/core/java/android/net/
H A DRouteInfo.java34 * - A gateway address (next-hop, for gatewayed routes), or
36 * - Both a gateway and an interface.
52 * The gateway address for this route.
68 * If destination is null, then gateway must be specified and the
70 * if @gateway is an instance of {@link Inet4Address}, or the IPv6 default
71 * route <code>::/0</code> if gateway is an instance of
74 * destination and gateway may not both be null.
77 * @param gateway the IP address to route packets through
80 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) { argument
82 if (gateway !
111 RouteInfo(LinkAddress destination, InetAddress gateway) argument
115 RouteInfo(InetAddress gateway) argument
127 makeHostRoute(InetAddress host, InetAddress gateway, String iface) argument
[all...]
H A DDhcpInfo.java28 public int gateway; field in class:DhcpInfo
44 gateway = source.gateway;
57 str.append(" gateway "); putAddress(str, gateway);
79 dest.writeInt(gateway);
93 info.gateway = in.readInt();
/frameworks/base/core/java/android/net/arp/
H A DArpPeer.java137 InetAddress gateway = null;
146 gateway = route.getGateway();
151 ArpPeer peer = new ArpPeer(interfaceName, inetAddress, myMacAddress, gateway);
/frameworks/base/core/jni/
H A Dandroid_net_NetUtils.cpp34 const char *gateway,
45 const char *gateway,
121 char gateway[PROPERTY_VALUE_MAX]; local
137 result = ::dhcp_do_request_renew(nameStr, ipaddr, gateway, &prefixLength,
140 result = ::dhcp_do_request(nameStr, ipaddr, gateway, &prefixLength,
162 // set the gateway
163 // dhcpResults->addGateway(gateway)
165 dhcpResultsFieldIds.addGateway, env->NewStringUTF(gateway));
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DAccessPointParserHelper.java49 * Tags that can be used include: ip, gateway, networkprefixlength, dns1, dns2. All access points
65 * for static ip setting, tag "ip" should be listed before other fields: dns, gateway,
107 boolean gateway = false;
159 if (tagName.equalsIgnoreCase("gateway")) {
160 gateway = true;
309 if (gateway) {
319 gateway = false;
/frameworks/base/core/java/android/net/dhcp/
H A DDhcpPacket.java565 InetAddress gateway = null; // aka router
683 gateway = readIpAddress(packet);
797 newPacket.mGateway = gateway;
836 InetAddress gateway, List<InetAddress> dnsServers,
840 pkt.mGateway = gateway;
856 InetAddress gateway, List<InetAddress> dnsServers,
860 pkt.mGateway = gateway;
833 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
853 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 DRouteInfoTest.java47 fail("Expected RuntimeException: destination and gateway null");
61 // Null gateway sets gateway to unspecified address (why?).
75 public PatchedRouteInfo(LinkAddress destination, InetAddress gateway, String iface) {
76 super(destination, gateway, iface);
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java683 throw new IllegalStateException("Unable to find IPv4 default gateway");
697 final String gateway = ipv4DefaultRoute.getGateway().getHostAddress();
740 profile.ipsecSecret, profile.username, profile.password, "", gateway,
746 caCert, serverCert, profile.username, profile.password, "", gateway,
752 caCert, serverCert, profile.username, profile.password, "", gateway,
/frameworks/base/services/java/com/android/server/wifi/
H A DWifiService.java940 InetAddress gateway = r.getGateway();
941 if (gateway instanceof Inet4Address) {
942 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address)gateway);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConfigStore.java149 private static final String GATEWAY_KEY = "gateway";
970 InetAddress gateway = null;
973 gateway = NetworkUtils.numericToInetAddress(in.readUTF());
981 gateway = NetworkUtils.numericToInetAddress(in.readUTF());
984 linkProperties.addRoute(new RouteInfo(dest, gateway));

Completed in 499 milliseconds