Home
last modified time | relevance | path

Searched defs:netId (Results 1 – 25 of 27) sorted by relevance

12

/system/netd/server/
DNetdHwService.cpp66 unsigned netId; in createOemNetwork() local
82 #define RETURN_IF_NOT_OEM_NETWORK(netId) \ argument
89 unsigned netId = netHandleToNetId(netHandle); in destroyOemNetwork() local
107 unsigned netId = netHandleToNetId(networkHandle); in addRouteToOemNetwork() local
118 unsigned netId = netHandleToNetId(networkHandle); in removeRouteFromOemNetwork() local
127 unsigned netId = netHandleToNetId(networkHandle); in addInterfaceToOemNetwork() local
135 unsigned netId = netHandleToNetId(networkHandle); in removeInterfaceFromOemNetwork() local
DNetworkController.cpp168 int NetworkController::setDefaultNetwork(unsigned netId) { in setDefaultNetwork()
205 uint32_t NetworkController::getNetworkForDnsLocked(unsigned* netId, uid_t uid) const { in getNetworkForDnsLocked()
291 unsigned netId, uid_t uid, struct android_net_context* netcontext) const { in getNetworkContext()
363 int NetworkController::createPhysicalNetworkLocked(unsigned netId, Permission permission) { in createPhysicalNetworkLocked()
389 int NetworkController::createPhysicalNetwork(unsigned netId, Permission permission) { in createPhysicalNetwork()
420 int NetworkController::createVirtualNetwork(unsigned netId, bool secure) { in createVirtualNetwork()
440 int NetworkController::destroyNetwork(unsigned netId) { in destroyNetwork()
492 int NetworkController::addInterfaceToNetwork(unsigned netId, const char* interface) { in addInterfaceToNetwork()
527 int NetworkController::removeInterfaceFromNetwork(unsigned netId, const char* interface) { in removeInterfaceFromNetwork()
559 for (unsigned netId : netIds) { in setPermissionForNetworks() local
[all …]
DPhysicalNetwork.cpp30 [[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) : in PhysicalNetwork()
DRouteController.cpp472 int modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission, in modifyIncomingPacketMark()
537 [[nodiscard]] static int modifyVpnSystemPermissionRule(unsigned netId, uint32_t table, bool secure, in modifyVpnSystemPermissionRule()
561 [[nodiscard]] static int modifyExplicitNetworkRule(unsigned netId, uint32_t table, in modifyExplicitNetworkRule()
613 [[nodiscard]] static int modifyImplicitNetworkRule(unsigned netId, uint32_t table, bool add) { in modifyImplicitNetworkRule()
744 [[nodiscard]] static int modifyLocalNetwork(unsigned netId, const char* interface, bool add) { in modifyLocalNetwork()
753 int RouteController::modifyPhysicalNetwork(unsigned netId, const char* interface, in modifyPhysicalNetwork()
815 int RouteController::modifyVirtualNetwork(unsigned netId, const char* interface, in modifyVirtualNetwork()
1031 int RouteController::addInterfaceToLocalNetwork(unsigned netId, const char* interface) { in addInterfaceToLocalNetwork()
1040 int RouteController::removeInterfaceFromLocalNetwork(unsigned netId, const char* interface) { in removeInterfaceFromLocalNetwork()
1049 int RouteController::addInterfaceToPhysicalNetwork(unsigned netId, const char* interface, in addInterfaceToPhysicalNetwork()
[all …]
DNetdNativeService.cpp347 binder::Status NetdNativeService::networkCreatePhysical(int32_t netId, int32_t permission) { in networkCreatePhysical()
353 binder::Status NetdNativeService::networkCreateVpn(int32_t netId, bool secure) { in networkCreateVpn()
359 binder::Status NetdNativeService::networkDestroy(int32_t netId) { in networkDestroy()
366 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { in networkAddInterface()
372 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { in networkRemoveInterface()
379 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkAddUidRanges()
387 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkRemoveUidRanges()
975 binder::Status NetdNativeService::tetherDnsSet(int32_t netId, in tetherDnsSet()
990 binder::Status NetdNativeService::networkAddRouteParcel(int32_t netId, in networkAddRouteParcel()
1004 binder::Status NetdNativeService::networkUpdateRouteParcel(int32_t netId, in networkUpdateRouteParcel()
[all …]
DDummyNetwork.cpp30 DummyNetwork::DummyNetwork(unsigned netId) : Network(netId) { in DummyNetwork()
DNdcDispatcher.cpp473 unsigned netId = stringToNetId(argv[3]); in runCommand() local
992 unsigned netId = stringToNetId(argv[nextArg++]); in runCommand() local
1023 unsigned netId = stringToNetId(argv[3]); in runCommand() local
1049 unsigned netId = stringToNetId(argv[2]); in runCommand() local
1080 unsigned netId = stringToNetId(argv[2]); in runCommand() local
1097 unsigned netId = NETID_UNSET; in runCommand() local
1161 for (auto netId : ids) { in runCommand() local
1179 unsigned netId = stringToNetId(argv[3]); in runCommand() local
DLocalNetwork.cpp27 LocalNetwork::LocalNetwork(unsigned netId) : Network(netId) { in LocalNetwork()
DNetwork.cpp90 Network::Network(unsigned netId) : mNetId(netId) { in Network()
DVirtualNetwork.cpp31 VirtualNetwork::VirtualNetwork(unsigned netId, bool secure) : Network(netId), mSecure(secure) {} in VirtualNetwork()
Dmain.cpp73 void getNetworkContextCallback(uint32_t netId, uint32_t uid, android_net_context* netcontext) { in getNetworkContextCallback()
DXfrmController.h125 int netId; member
DTetherController.cpp400 int TetherController::setDnsForwarders(unsigned netId, char **servers, int numServers) { in setDnsForwarders()
445 int TetherController::setDnsForwarders(unsigned netId, const std::vector<std::string>& servers) { in setDnsForwarders()
/system/netd/server/aidl_api/netd_event_listener_interface/1/android/net/metrics/
DINetdEventListener.aidl20 …oneway void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, @utf8InCpp String … in onDnsEvent()
21 …oneway void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, boolean vali… in onPrivateDnsValidationEvent()
22 oneway void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid); in onConnectEvent()
25 …oneway void onNat64PrefixEvent(int netId, boolean added, @utf8InCpp String prefixString, int prefi… in onNat64PrefixEvent()
/system/netd/server/binder/android/net/metrics/
DINetdEventListener.aidl51 void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, in onDnsEvent()
63 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, in onPrivateDnsValidationEvent()
76 void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid); in onConnectEvent()
126 void onNat64PrefixEvent(int netId, boolean added, @utf8InCpp String prefixString, in onNat64PrefixEvent()
/system/netd/server/aidl_api/netd_event_listener_interface/current/android/net/metrics/
DINetdEventListener.aidl21 …oneway void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, @utf8InCpp String … in onDnsEvent()
22 …oneway void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, boolean vali… in onPrivateDnsValidationEvent()
23 oneway void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid); in onConnectEvent()
26 …oneway void onNat64PrefixEvent(int netId, boolean added, @utf8InCpp String prefixString, int prefi… in onNat64PrefixEvent()
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/
DINetd.aidl24 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical()
25 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn()
26 void networkDestroy(int netId); in networkDestroy()
27 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface()
28 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface()
29 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges()
30 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges()
80 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet()
82 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute()
83 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute()
[all …]
/system/netd/server/binder/android/net/
DINetd.aidl80 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical()
91 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn()
102 void networkDestroy(int netId); in networkDestroy()
114 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface()
125 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface()
138 void networkAddUidRanges(int netId, in UidRangeParcel[] uidRanges); in networkAddUidRanges()
151 void networkRemoveUidRanges(int netId, in UidRangeParcel[] uidRanges); in networkRemoveUidRanges()
763 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet()
794 int netId, in networkAddRoute()
812 int netId, in networkRemoveRoute()
[all …]
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/
DINetd.aidl24 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical()
25 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn()
26 void networkDestroy(int netId); in networkDestroy()
27 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface()
28 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface()
29 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges()
30 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges()
80 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet()
82 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute()
83 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute()
[all …]
/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/
DINetd.aidl24 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical()
25 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn()
26 void networkDestroy(int netId); in networkDestroy()
27 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface()
28 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface()
29 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges()
30 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges()
80 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet()
82 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute()
83 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute()
[all …]
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/
DINetd.aidl6 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical()
7 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn()
8 void networkDestroy(int netId); in networkDestroy()
9 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface()
10 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface()
11 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges()
12 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges()
62 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet()
64 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute()
65 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute()
[all …]
/system/netd/client/
DNetdClient.cpp195 unsigned netId = netIdForProcess & ~NETID_USE_LOCAL_NAMESERVERS; in netdClientSocket() local
246 unsigned getNetworkForResolv(unsigned netId) { in getNetworkForResolv()
261 int setNetworkForTarget(unsigned netId, std::atomic_uint* target) { in setNetworkForTarget()
459 extern "C" int getNetworkForSocket(unsigned* netId, int socketFd) { in getNetworkForSocket()
476 extern "C" int setNetworkForSocket(unsigned netId, int socketFd) { in setNetworkForSocket()
482 extern "C" int setNetworkForProcess(unsigned netId) { in setNetworkForProcess()
486 extern "C" int setNetworkForResolv(unsigned netId) { in setNetworkForResolv()
502 extern "C" int queryUserAccess(uid_t uid, unsigned netId) { in queryUserAccess()
529 extern "C" int resNetworkQuery(unsigned netId, const char* dname, int ns_class, int ns_type, in resNetworkQuery()
538 extern "C" int resNetworkSend(unsigned netId, const uint8_t* msg, size_t msglen, uint32_t flags) { in resNetworkSend()
/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/
DINetd.aidl23 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical()
24 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn()
25 void networkDestroy(int netId); in networkDestroy()
26 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface()
27 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface()
28 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges()
29 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges()
79 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet()
81 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute()
82 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute()
[all …]
/system/netd/include/
DFwmark.h27 unsigned netId : 16; member
DFwmarkCommand.h76 unsigned netId; // used only in the SELECT_NETWORK command; ignored otherwise. member

12