/frameworks/base/core/java/android/net/ |
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 the IP address to route packets throug [all...] |
StaticIpConfiguration.java | 50 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 != null) [all...] |
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();
|
/device/google/cuttlefish_common/common/vsoc/shm/ |
ril_layout.h | 31 char gateway[16]; member in struct:vsoc::layout::ril::RilLayout
|
/external/syslinux/gpxe/src/usr/ |
route.c | 39 if ( miniroute->gateway.s_addr ) 40 printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
|
/device/generic/goldfish/dhcp/client/ |
router.h | 32 // Set the default route to |gateway| on the interface specified by 37 Result setDefaultGateway(in_addr_t gateway, unsigned int interfaceIndex);
|
router.cpp | 63 Result Router::setDefaultGateway(in_addr_t gateway, unsigned int ifaceIndex) { 84 addRouterAttribute(request, RTA_GATEWAY, &gateway, sizeof(gateway));
|
/external/ltp/testcases/network/stress/route/ |
route4-change-if | 67 # The first 2 ocnted of the Network portion of the gateway address 70 # Netmask of for the gateway 75 RHOST_IPV4_HOST=${RHOST_IPV4_HOST:-"1"} # gateway 223 # Check the connectivity to the gateway 242 gateway="${IPV4_NETWORK_PRE}.${link_num}.${RHOST_IPV4_HOST}" 245 route add -net $dst_network netmask 255.255.255.0 gw $gateway dev $lhost_ifname 248 ip route add ${dst_network}/24 via $gateway dev $lhost_ifname 268 pre_gateway=$gateway 272 gateway="${IPV4_NETWORK_PRE}.${link_num}.${RHOST_IPV4_HOST}" 276 route add -net $dst_network netmask 255.255.255.0 gw $gateway dev $lhost_ifnam [all...] |
route6-change-if | 67 # The first 2 ocnted of the Network portion of the gateway address 70 # Netmask of for the gateway 75 RHOST_IPV6_HOST=":1" # gateway 221 # Check the connectivity to the gateway 240 gateway="${IPV6_NETWORK_PRE}:${link_num}:${RHOST_IPV6_HOST}" 243 route -A inet6 add ${dst_network}/64 gw $gateway dev $lhost_ifname 246 ip -f inet6 route add ${dst_network}/64 via $gateway dev $lhost_ifname 266 pre_gateway=$gateway 270 gateway="${IPV6_NETWORK_PRE}:${link_num}:${RHOST_IPV6_HOST}" 274 route -A inet6 add ${dst_network}/64 gw $gateway dev $lhost_ifnam [all...] |
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/proxy/ |
proxy_test.go | 22 gateway, err := net.Listen("tcp", "127.0.0.1:0") 26 defer gateway.Close() 30 go socks5Gateway(t, gateway, endSystem, socks5Domain, &wg) 32 url, err := url.Parse("socks5://user:password@" + gateway.Addr().String()) 59 gateway, err := net.Listen("tcp", "127.0.0.1:0") 63 defer gateway.Close() 67 go socks5Gateway(t, gateway, endSystem, socks5IP4, &wg) 69 proxy, err := SOCKS5("tcp", gateway.Addr().String(), nil, Direct) 82 func socks5Gateway(t *testing.T, gateway, endSystem net.Listener, typ byte, wg *sync.WaitGroup) { 85 c, err := gateway.Accept( [all...] |
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/proxy/ |
proxy_test.go | 22 gateway, err := net.Listen("tcp", "127.0.0.1:0") 26 defer gateway.Close() 30 go socks5Gateway(t, gateway, endSystem, socks5Domain, &wg) 32 url, err := url.Parse("socks5://user:password@" + gateway.Addr().String()) 59 gateway, err := net.Listen("tcp", "127.0.0.1:0") 63 defer gateway.Close() 67 go socks5Gateway(t, gateway, endSystem, socks5IP4, &wg) 69 proxy, err := SOCKS5("tcp", gateway.Addr().String(), nil, Direct) 82 func socks5Gateway(t *testing.T, gateway, endSystem net.Listener, typ byte, wg *sync.WaitGroup) { 85 c, err := gateway.Accept( [all...] |
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/ |
EthernetTrackerTest.java | 48 "ip=192.0.2.10/24 dns=4.4.4.4,8.8.8.8 gateway=192.0.2.1 domains=android", 58 "domains=android ip=192.0.2.10/24 gateway=192.0.2.1 dns=4.4.4.4,8.8.8.8 ", 69 assertFails("ip=192.0.2.1/24 gateway= blah=20.20.20.20"); // Unknown key 75 assertFails("ip=192.0.2.1/24 gateway="); // Gateway is empty 111 StaticIpConfigBuilder setGateway(String gateway) { 112 config.gateway = InetAddress.parseNumericAddress(gateway);
|
/device/generic/goldfish/dhcp/server/ |
main.cpp | 31 in_addr_t gateway = 0; local 67 } else if (strcmp("--gateway", argv[i]) == 0) { 69 ALOGE("ERROR: Missing argument to --gateway parameter"); 75 gateway = address.s_addr; 77 ALOGE("ERROR: Invalid gateway '%s'", argv[i + 1]); 118 if (gateway == 0) { 119 ALOGE("ERROR: Missing or invalid --gateway argument"); 132 gateway,
|
/frameworks/base/tests/net/java/android/net/ |
StaticIpConfigurationTest.java | 42 private static final InetAddress GATEWAY = IpAddress("192.0.2.1"); 55 assertNull(s.gateway); 67 s.gateway = GATEWAY; 105 s.gateway = GATEWAY; 134 s.gateway = DNS2; 156 s.gateway = GATEWAY; 157 RouteInfo defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), GATEWAY, IFACE) [all...] |
/external/autotest/client/site_tests/network_WiFiTxRx/ |
network-flipflop.sh | 177 gateway=$(ip route show dev $iface to match 0/0|\ 180 progress Allowing link $gateway strength/quality readings to stabilise; 181 ping -n -w 5 -c 5 $gateway 1>&2; 183 progress Contacting AP at "/dev/tcp/$gateway/80" to collect TX strength; 184 if exec {http}<>/dev/tcp/$gateway/80; then
|
/external/syslinux/gpxe/src/net/ |
ipv6.c | 39 /* Gateway address */ 40 struct in6_addr gateway; member in struct:ipv6_miniroute 52 * @v gateway Gateway address (or ::0 for no gateway) 58 struct in6_addr gateway ) { 68 miniroute->gateway = gateway; 71 if ( !IP6_EQUAL ( gateway, ip6_none ) ) { 98 * @v gateway Gateway address (or ::0 for no gateway [all...] |
ipv4.c | 43 * @v gateway Gateway address (if any) 48 struct in_addr netmask, struct in_addr gateway ) { 53 if ( gateway.s_addr ) 54 DBG ( "gw %s ", inet_ntoa ( gateway ) ); 68 miniroute->gateway = gateway; 70 /* Add to end of list if we have a gateway, otherwise 73 if ( gateway.s_addr ) { 91 if ( miniroute->gateway.s_addr 591 struct in_addr gateway = { 0 }; local [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
IpConfigStore.java | 54 protected static final String GATEWAY_KEY = "gateway"; 96 if (staticIpConfiguration.gateway != null) { 99 out.writeInt(1); // Have a gateway. 100 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); 296 InetAddress gateway = null; local 299 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); 300 if (staticIpConfiguration.gateway == null) { 301 staticIpConfiguration.gateway = gateway; 303 loge("Duplicate gateway: " + gateway.getHostAddress()) [all...] |
/external/autotest/client/cros/ |
backchannel.py | 35 self.gateway = None 68 # Retrieve the gateway for the default route. 78 self.gateway, self.interface = line.strip().split(' ') 97 # Add route using the pre-backchannel gateway. 99 self.gateway) 103 # Make sure we have a route to the gateway before continuing. 104 logging.info('Waiting for route to gateway %s', self.gateway) 130 if self.gateway: 131 logging.info('Waiting for route restore to gateway %s' [all...] |
/system/netd/server/ |
NetlinkHandler.cpp | 149 const char *gateway = evt->findParam("GATEWAY"); local 151 if (route && (gateway || iface)) { 152 notifyRouteChange(action, route, gateway, iface); 250 const char *gateway, const char *iface) { 255 (gateway && *gateway) ? " via " : "", 256 gateway,
|
/bionic/libc/kernel/uapi/linux/ |
icmp.h | 68 __be32 gateway; member in union:icmphdr::__anon662
|
/external/autotest/site_utils/ |
mysql_bootstrap.py | 28 database server without knowing their ips by using the ip of the gateway. 32 by the gateway. 37 "GRANT privileges on <db> to 'A1_user'@(gateway address) 184 """Return the address of the default gateway. 186 @raises: subprocess.CalledProcessError: If the address of the gateway 193 logging.error('Unable to get gateway: %s', e) 202 default=False, help='Enable gateway access for vagrant testing.') 210 access through the gateway if --enable_gateway is specified. 230 gateway = get_gateway() 231 logging.info('Enabling access through gateway %s', gateway [all...] |
/external/kernel-headers/original/uapi/linux/ |
icmp.h | 78 __be32 gateway; member in union:icmphdr::__anon22868
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
AdvancedOptionsFlowUtil.java | 128 String gateway = flowInfo.get(AdvancedOptionsFlowInfo.GATEWAY); local 129 if (!TextUtils.isEmpty(gateway)) { 131 staticConfig.gateway = 132 NetworkUtils.numericToInetAddress(gateway);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
icmp.h | 77 __be32 gateway; member in union:icmphdr::__anon62528
|