/system/netd/include/ |
NetdClient.h | 28 int getNetworkForSocket(unsigned* netId, int socketFd); 29 int setNetworkForSocket(unsigned netId, int socketFd); 32 int setNetworkForProcess(unsigned netId); 34 int setNetworkForResolv(unsigned netId); 40 int queryUserAccess(uid_t uid, unsigned netId);
|
Fwmark.h | 27 unsigned netId : 16;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
NetworkUpdateResult.java | 22 int netId; 29 netId = id; 36 netId = INVALID_NETWORK_ID; 43 netId = id; 47 return netId; 71 return netId != INVALID_NETWORK_ID;
|
/system/netd/server/ |
NetworkController.cpp | 104 ALOGE("failed to add fallthrough to %s for VPN netId %u", physicalInterface.c_str(), 112 ALOGE("failed to remove fallthrough to %s for VPN netId %u", physicalInterface.c_str(), 154 int NetworkController::setDefaultNetwork(unsigned netId) { 157 if (netId == mDefaultNetId) { 161 if (netId != NETID_UNSET) { 162 Network* network = getNetworkLocked(netId); 164 ALOGE("no such netId %u", netId); 168 ALOGE("cannot set default to non-physical network with netId %u", netId); [all...] |
NetworkController.h | 37 // Utility to convert from netId to net_handle_t. Doing this here as opposed to exporting 39 // obtaining handle given netId. 56 // Utility to convert from nethandle to netid, keep in sync with getNetworkHandle 75 * by netid. In all set* commands netid == 0 means "unspecified" and is 88 int setDefaultNetwork(unsigned netId) WARN_UNUSED_RESULT; 90 // Sets |*netId| to an appropriate NetId to use for DNS for the given user. Call with |*netId| 93 uint32_t getNetworkForDns(unsigned* netId, uid_t uid) const [all...] |
DummyNetwork.cpp | 30 DummyNetwork::DummyNetwork(unsigned netId) : Network(netId) {
|
RouteController.h | 47 static int addInterfaceToLocalNetwork(unsigned netId, const char* interface) WARN_UNUSED_RESULT; 48 static int removeInterfaceFromLocalNetwork(unsigned netId, 51 static int addInterfaceToPhysicalNetwork(unsigned netId, const char* interface, 53 static int removeInterfaceFromPhysicalNetwork(unsigned netId, const char* interface, 56 static int addInterfaceToVirtualNetwork(unsigned netId, const char* interface, bool secure, 58 static int removeInterfaceFromVirtualNetwork(unsigned netId, const char* interface, bool secure, 61 static int modifyPhysicalNetworkPermission(unsigned netId, const char* interface, 65 static int addUsersToVirtualNetwork(unsigned netId, const char* interface, bool secure, 67 static int removeUsersFromVirtualNetwork(unsigned netId, const char* interface, bool secure, 109 WARN_UNUSED_RESULT int modifyIncomingPacketMark(unsigned netId, const char* interface [all...] |
NetdHwService.cpp | 67 unsigned netId; 71 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId); 74 fwmark.netId = netId; 78 _hidl_cb(netIdToNetHandle(netId), fwmark.intValue, toHalStatus(ret)); 84 unsigned netId = netHandleToNetId(netHandle); 85 if ((netId < NetworkController::MIN_OEM_ID) || 86 (netId > NetworkController::MAX_OEM_ID)) { 92 return toHalStatus(gCtls->netCtrl.destroyNetwork(netId));
|
ResolverController.h | 39 int setDnsServers(unsigned netId, const char* searchDomains, const char** servers, 42 // Given a netId and the address of an insecure (i.e. normal) DNS server, this method checks 44 // accessible on this netId. If so, it returns true, providing the server's address 48 bool shouldUseTls(unsigned netId, const sockaddr_storage& insecureServer, 51 int clearDnsServers(unsigned netid); 53 int flushDnsCache(unsigned netid); 55 int getDnsInfo(unsigned netId, std::vector<std::string>* servers, 61 int setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers, 64 int getResolverInfo(int32_t netId, std::vector<std::string>* servers, 67 void dump(DumpWriter& dw, unsigned netId); [all...] |
DummyNetwork.h | 28 explicit DummyNetwork(unsigned netId);
|
LocalNetwork.h | 27 explicit LocalNetwork(unsigned netId);
|
ClatdController.cpp | 63 // Pass in the interface, a netid to use for DNS lookups, and a fwmark for outgoing packets. 64 unsigned netId = mNetCtrl->getNetworkForInterface(interface); 65 if (netId == NETID_UNSET) { 66 ALOGE("interface %s not assigned to any netId", interface); 72 snprintf(netIdString, sizeof(netIdString), "%u", netId); 75 fwmark.netId = netId;
|
/bionic/libc/bionic/ |
NetdClientDispatch.cpp | 29 static unsigned fallBackNetIdForResolv(unsigned netId) { 30 return netId;
|
/frameworks/base/core/java/android/net/metrics/ |
DefaultNetworkEvent.java | 29 public final int netId; 39 public DefaultNetworkEvent(int netId, int[] transportTypes, 41 this.netId = netId; 49 this.netId = in.readInt(); 58 out.writeInt(netId); 73 String newNetwork = String.valueOf(netId); 77 if (netId != 0) {
|
NetworkEvent.java | 63 public final int netId; 67 public NetworkEvent(int netId, @EventType int eventType, long durationMs) { 68 this.netId = netId; 73 public NetworkEvent(int netId, @EventType int eventType) { 74 this(netId, eventType, 0); 78 netId = in.readInt(); 85 out.writeInt(netId); 109 netId, Decoder.constants.get(eventType), durationMs);
|
DnsEvent.java | 32 public final int netId; 49 public DnsEvent(int netId, long transports, int initialCapacity) { 50 this.netId = netId; 79 StringBuilder builder = new StringBuilder("DnsEvent(").append(netId).append(", ");
|
/libcore/luni/src/main/java/java/net/ |
AddressCache.java | 47 AddressCacheKey(String hostname, int netId) { 49 mNetId = netId; 98 * Returns the cached InetAddress[] for 'hostname' on network 'netId'. Returns null 102 public Object get(String hostname, int netId) { 103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); 117 public void put(String hostname, int netId, InetAddress[] addresses) { 118 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); 125 public void putUnknownHost(String hostname, int netId, String detailMessage) { 126 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage));
|
/system/netd/client/ |
NetdClient.cpp | 97 // TODO: get the netId from the socket mark once we have continuous benchmark runs 98 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0, 112 unsigned netId = netIdForProcess; 113 if (netId != NETID_UNSET && FwmarkClient::shouldSetFwmark(domain)) { 114 if (int error = setNetworkForSocket(netId, socketFd)) { 121 unsigned getNetworkForResolv(unsigned netId) { 122 if (netId != NETID_UNSET) { 123 return netId; 125 netId = netIdForProcess; 126 if (netId != NETID_UNSET) [all...] |
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/ |
NameService.java | 31 public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException;
|
/system/netd/server/binder/android/net/metrics/ |
INetdEventListener.aidl | 38 * @param netId the ID of the network the lookup was performed on. 49 void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, String hostname, 55 * @param netId the ID of the network the connect was performed on. 62 void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid);
|
/frameworks/base/core/java/android/net/ |
Network.java | 64 public final int netId; 89 public Network(int netId) { 90 this.netId = netId; 97 this.netId = that.netId; 109 return InetAddress.getAllByNameOnNet(host, netId); 123 return InetAddress.getByNameOnNet(host, netId); 132 public NetworkBoundSocketFactory(int netId) { 134 mNetId = netId; [all...] |
ConnectivityMetricsEvent.java | 35 public int netId; 47 netId = in.readInt(); 73 dest.writeInt(netId); 82 if (netId != 0) { 83 buffer.append(", ").append(netId);
|
/frameworks/base/core/java/android/os/ |
INetworkManagementService.aidl | 114 void addRoute(int netId, in RouteInfo route); 119 void removeRoute(int netId, in RouteInfo route); 347 void setDnsConfigurationForNetwork(int netId, in String[] servers, String domains); 357 * Set all packets from users in ranges to go through VPN specified by netId. 359 void addVpnUidRanges(int netId, in UidRange[] ranges); 362 * Clears the special VPN rules for users in ranges and VPN specified by netId. 364 void removeVpnUidRanges(int netId, in UidRange[] ranges); 401 void createPhysicalNetwork(int netId, String permission); 406 void createVirtualNetwork(int netId, boolean hasDNS, boolean secure); 411 void removeNetwork(int netId); [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiNetworkSelectorTestUtil.java | 151 int netId = 0; 160 id = new Integer(netId); 162 netId++; 184 public WifiConfiguration answer(int netId) { 186 if (netId == config.networkId) { 208 for (int netId = 0; netId < configs.length; netId++) { 209 savedNetworks.add(new WifiConfiguration(configs[netId])); 216 public boolean answer(int netId) { [all...] |
/libcore/ojluni/src/main/java/java/net/ |
InetAddressImpl.java | 39 * Lookup all addresses for {@code hostname} on the given {@code netId}. 41 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException;
|