/system/netd/server/ |
D | NetdHwService.cpp | 61 unsigned netId; in createOemNetwork() local 77 #define RETURN_IF_NOT_OEM_NETWORK(netId) \ argument 84 unsigned netId = netHandleToNetId(netHandle); in destroyOemNetwork() local 102 unsigned netId = netHandleToNetId(networkHandle); in addRouteToOemNetwork() local 113 unsigned netId = netHandleToNetId(networkHandle); in removeRouteFromOemNetwork() local 122 unsigned netId = netHandleToNetId(networkHandle); in addInterfaceToOemNetwork() local 130 unsigned netId = netHandleToNetId(networkHandle); in removeInterfaceFromOemNetwork() local
|
D | NetdHwAidlService.cpp | 69 unsigned netId; in createOemNetwork() local 89 #define RETURN_IF_NOT_OEM_NETWORK(netId) \ argument 95 unsigned netId = netHandleToNetId(netHandle); in destroyOemNetwork() local 119 unsigned netId = netHandleToNetId(networkHandle); in addRouteToOemNetwork() local 135 unsigned netId = netHandleToNetId(networkHandle); in removeRouteFromOemNetwork() local 149 unsigned netId = netHandleToNetId(networkHandle); in addInterfaceToOemNetwork() local 162 unsigned netId = netHandleToNetId(networkHandle); in removeInterfaceFromOemNetwork() local
|
D | NetworkController.cpp | 173 int NetworkController::setDefaultNetwork(unsigned netId) { in setDefaultNetwork() 210 uint32_t NetworkController::getNetworkForDnsLocked(unsigned* netId, uid_t uid) const { in getNetworkForDnsLocked() 314 unsigned netId, uid_t uid, struct android_net_context* netcontext) const { in getNetworkContext() 399 int NetworkController::createPhysicalNetworkLocked(unsigned netId, Permission permission, in createPhysicalNetworkLocked() 426 int NetworkController::createPhysicalNetwork(unsigned netId, Permission permission, bool local) { in createPhysicalNetwork() 457 int NetworkController::createVirtualNetwork(unsigned netId, bool secure, NativeVpnType vpnType, in createVirtualNetwork() 483 int NetworkController::destroyNetwork(unsigned netId) { in destroyNetwork() 535 int NetworkController::addInterfaceToNetwork(unsigned netId, const char* interface) { in addInterfaceToNetwork() 570 int NetworkController::removeInterfaceFromNetwork(unsigned netId, const char* interface) { in removeInterfaceFromNetwork() 602 for (unsigned netId : netIds) { in setPermissionForNetworks() local [all …]
|
D | RouteController.cpp | 480 int modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission, in modifyIncomingPacketMark() 547 [[nodiscard]] static int modifyVpnSystemPermissionRule(unsigned netId, uint32_t table, bool secure, in modifyVpnSystemPermissionRule() 578 [[nodiscard]] static int modifyExplicitNetworkRule(unsigned netId, uint32_t table, in modifyExplicitNetworkRule() 660 [[nodiscard]] static int modifyImplicitNetworkRule(unsigned netId, uint32_t table, bool add) { in modifyImplicitNetworkRule() 826 [[nodiscard]] static int modifyLocalNetwork(unsigned netId, const char* interface, bool add) { in modifyLocalNetwork() 836 [[nodiscard]] static int modifyUidNetworkRule(unsigned netId, uint32_t table, uid_t uidStart, in modifyUidNetworkRule() 887 int RouteController::modifyPhysicalNetwork(unsigned netId, const char* interface, in modifyPhysicalNetwork() 997 [[nodiscard]] static int modifyUidUnreachableRule(unsigned netId, uid_t uidStart, uid_t uidEnd, in modifyUidUnreachableRule() 1048 int RouteController::modifyUnreachableNetwork(unsigned netId, const UidRangeMap& uidRangeMap, in modifyUnreachableNetwork() 1087 int RouteController::modifyVirtualNetwork(unsigned netId, const char* interface, in modifyVirtualNetwork() [all …]
|
D | DummyNetwork.cpp | 35 DummyNetwork::DummyNetwork(unsigned netId) : Network(netId) { in DummyNetwork()
|
D | PhysicalNetwork.cpp | 30 [[nodiscard]] int addToDefault(unsigned netId, const std::string& interface, Permission permission, in addToDefault() 42 [[nodiscard]] int removeFromDefault(unsigned netId, const std::string& interface, in removeFromDefault() 59 PhysicalNetwork::PhysicalNetwork(unsigned netId, PhysicalNetwork::Delegate* delegate, bool local) in PhysicalNetwork()
|
D | NetdNativeService.cpp | 273 binder::Status NetdNativeService::networkCreatePhysical(int32_t netId, int32_t permission) { in networkCreatePhysical() 282 binder::Status NetdNativeService::networkCreateVpn(int32_t netId, bool secure) { in networkCreateVpn() 308 binder::Status NetdNativeService::networkDestroy(int32_t netId) { in networkDestroy() 315 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { in networkAddInterface() 321 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { in networkRemoveInterface() 328 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkAddUidRanges() 337 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkRemoveUidRanges() 949 binder::Status NetdNativeService::tetherDnsSet(int32_t netId, in tetherDnsSet() 964 binder::Status NetdNativeService::networkAddRouteParcel(int32_t netId, in networkAddRouteParcel() 978 binder::Status NetdNativeService::networkUpdateRouteParcel(int32_t netId, in networkUpdateRouteParcel() [all …]
|
D | NdcDispatcher.cpp | 472 unsigned netId = stringToNetId(argv[3]); in runCommand() local 959 unsigned netId = stringToNetId(argv[nextArg++]); in runCommand() local 990 unsigned netId = stringToNetId(argv[3]); in runCommand() local 1016 unsigned netId = stringToNetId(argv[2]); in runCommand() local 1053 unsigned netId = stringToNetId(argv[2]); in runCommand() local 1070 unsigned netId = NETID_UNSET; in runCommand() local 1134 for (auto netId : ids) { in runCommand() local 1152 unsigned netId = stringToNetId(argv[3]); in runCommand() local
|
D | LocalNetwork.cpp | 28 LocalNetwork::LocalNetwork(unsigned netId) : Network(netId) { in LocalNetwork()
|
D | UnreachableNetwork.cpp | 27 UnreachableNetwork::UnreachableNetwork(unsigned netId) : Network(netId) {} in UnreachableNetwork()
|
D | VirtualNetwork.cpp | 30 VirtualNetwork::VirtualNetwork(unsigned netId, bool secure, bool excludeLocalRoutes) in VirtualNetwork()
|
D | main.cpp | 81 void getNetworkContextCallback(uint32_t netId, uint32_t uid, android_net_context* netcontext) { in getNetworkContextCallback()
|
D | Network.cpp | 152 Network::Network(unsigned netId, bool secure) : mNetId(netId), mSecure(secure) {} in Network()
|
D | TetherController.cpp | 372 int TetherController::setDnsForwarders(unsigned netId, char **servers, int numServers) { in setDnsForwarders() 417 int TetherController::setDnsForwarders(unsigned netId, const std::vector<std::string>& servers) { in setDnsForwarders()
|
D | XfrmController.h | 133 int netId; member
|
D | SockDiagTest.cpp | 292 unsigned netId; member
|
D | MDnsSdListener.cpp | 66 unsigned netId; in ifaceIndexToNetId() local
|
D | SockDiag.cpp | 468 int SockDiag::destroySocketsLackingPermission(unsigned netId, Permission permission, in destroySocketsLackingPermission()
|
/system/netd/client/ |
D | NetdClientRootTest.cpp | 31 unsigned netId = NETID_UNSET; in TEST() local
|
D | NetdClient.cpp | 185 unsigned netId = netIdForProcess & ~NETID_USE_LOCAL_NAMESERVERS; in netdClientSocket() local 236 unsigned getNetworkForResolv(unsigned netId) { in getNetworkForResolv() 251 int setNetworkForTarget(unsigned netId, std::atomic_uint* target) { in setNetworkForTarget() 449 extern "C" int getNetworkForSocket(unsigned* netId, int socketFd) { in getNetworkForSocket() 466 extern "C" int setNetworkForSocket(unsigned netId, int socketFd) { in setNetworkForSocket() 472 extern "C" int setNetworkForProcess(unsigned netId) { in setNetworkForProcess() 476 extern "C" int setNetworkForResolv(unsigned netId) { in setNetworkForResolv() 492 extern "C" int queryUserAccess(uid_t uid, unsigned netId) { in queryUserAccess() 517 extern "C" int resNetworkQuery(unsigned netId, const char* dname, int ns_class, int ns_type, in resNetworkQuery() 526 extern "C" int resNetworkSend(unsigned netId, const uint8_t* msg, size_t msglen, uint32_t flags) { in resNetworkSend()
|
/system/netd/include/ |
D | Fwmark.h | 27 unsigned netId : 16; member
|
D | FwmarkCommand.h | 73 unsigned netId; // used only in the SELECT_NETWORK command; ignored otherwise. member
|
/system/netd/tests/ |
D | binder_test.cpp | 297 NativeNetworkConfig makeNativeNetworkConfig(int netId, NativeNetworkType networkType, in makeNativeNetworkConfig() 312 bool testNetworkExistsButCannotConnect(const sp<INetd>& netd, TunInterface& ifc, const int netId) { in testNetworkExistsButCannotConnect() 819 NativeUidRangeConfig makeNativeUidRangeConfig(unsigned netId, std::vector<UidRangeParcel> uidRanges, in makeNativeUidRangeConfig() 3648 void NetdBinderTest::createAndSetDefaultNetwork(int netId, const std::string& interface, in createAndSetDefaultNetwork() 3660 void NetdBinderTest::createPhysicalNetwork(int netId, const std::string& interface, in createPhysicalNetwork() 4162 void expectPacketSentOnNetId(uid_t uid, unsigned netId, int fd, int selectionMode) { in expectPacketSentOnNetId() 4184 void expectUnreachableError(uid_t uid, unsigned netId, int selectionMode) { in expectUnreachableError() 5081 unsigned int netId; in TEST_F() member 5131 int bindSocketToNetwork(int sock, int netId, bool explicitlySelected) { in bindSocketToNetwork() 5139 void changeNetworkPermissionForUid(int netId, int uid, bool add) { in changeNetworkPermissionForUid() [all …]
|