/system/netd/server/ |
D | NetdHwService.cpp | 66 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
|
D | NetworkController.cpp | 170 int NetworkController::setDefaultNetwork(unsigned netId) { in setDefaultNetwork() 207 uint32_t NetworkController::getNetworkForDnsLocked(unsigned* netId, uid_t uid) const { in getNetworkForDnsLocked() 311 unsigned netId, uid_t uid, struct android_net_context* netcontext) const { in getNetworkContext() 383 int NetworkController::createPhysicalNetworkLocked(unsigned netId, Permission permission) { in createPhysicalNetworkLocked() 409 int NetworkController::createPhysicalNetwork(unsigned netId, Permission permission) { in createPhysicalNetwork() 440 int NetworkController::createVirtualNetwork(unsigned netId, bool secure, NativeVpnType vpnType) { in createVirtualNetwork() 465 int NetworkController::destroyNetwork(unsigned netId) { in destroyNetwork() 517 int NetworkController::addInterfaceToNetwork(unsigned netId, const char* interface) { in addInterfaceToNetwork() 552 int NetworkController::removeInterfaceFromNetwork(unsigned netId, const char* interface) { in removeInterfaceFromNetwork() 584 for (unsigned netId : netIds) { in setPermissionForNetworks() local [all …]
|
D | RouteController.cpp | 457 int modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission, in modifyIncomingPacketMark() 522 [[nodiscard]] static int modifyVpnSystemPermissionRule(unsigned netId, uint32_t table, bool secure, in modifyVpnSystemPermissionRule() 546 [[nodiscard]] static int modifyExplicitNetworkRule(unsigned netId, uint32_t table, in modifyExplicitNetworkRule() 600 [[nodiscard]] static int modifyImplicitNetworkRule(unsigned netId, uint32_t table, bool add) { in modifyImplicitNetworkRule() 733 [[nodiscard]] static int modifyLocalNetwork(unsigned netId, const char* interface, bool add) { in modifyLocalNetwork() 743 [[nodiscard]] static int modifyUidNetworkRule(unsigned netId, uint32_t table, uid_t uidStart, in modifyUidNetworkRule() 794 int RouteController::modifyPhysicalNetwork(unsigned netId, const char* interface, in modifyPhysicalNetwork() 862 [[nodiscard]] static int modifyUidUnreachableRule(unsigned netId, uid_t uidStart, uid_t uidEnd, in modifyUidUnreachableRule() 913 int RouteController::modifyUnreachableNetwork(unsigned netId, const UidRangeMap& uidRangeMap, in modifyUnreachableNetwork() 952 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) : in PhysicalNetwork()
|
D | NetdNativeService.cpp | 352 binder::Status NetdNativeService::networkCreatePhysical(int32_t netId, int32_t permission) { in networkCreatePhysical() 360 binder::Status NetdNativeService::networkCreateVpn(int32_t netId, bool secure) { in networkCreateVpn() 381 binder::Status NetdNativeService::networkDestroy(int32_t netId) { in networkDestroy() 388 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { in networkAddInterface() 394 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { in networkRemoveInterface() 401 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkAddUidRanges() 410 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkRemoveUidRanges() 1013 binder::Status NetdNativeService::tetherDnsSet(int32_t netId, in tetherDnsSet() 1028 binder::Status NetdNativeService::networkAddRouteParcel(int32_t netId, in networkAddRouteParcel() 1042 binder::Status NetdNativeService::networkUpdateRouteParcel(int32_t netId, in networkUpdateRouteParcel() [all …]
|
D | LocalNetwork.cpp | 28 LocalNetwork::LocalNetwork(unsigned netId) : Network(netId) { in LocalNetwork()
|
D | NdcDispatcher.cpp | 473 unsigned netId = stringToNetId(argv[3]); in runCommand() local 994 unsigned netId = stringToNetId(argv[nextArg++]); in runCommand() local 1025 unsigned netId = stringToNetId(argv[3]); in runCommand() local 1051 unsigned netId = stringToNetId(argv[2]); in runCommand() local 1088 unsigned netId = stringToNetId(argv[2]); in runCommand() local 1105 unsigned netId = NETID_UNSET; in runCommand() local 1169 for (auto netId : ids) { in runCommand() local 1187 unsigned netId = stringToNetId(argv[3]); in runCommand() local
|
D | UnreachableNetwork.cpp | 27 UnreachableNetwork::UnreachableNetwork(unsigned netId) : Network(netId) {} in UnreachableNetwork()
|
D | VirtualNetwork.cpp | 30 VirtualNetwork::VirtualNetwork(unsigned netId, bool secure) : Network(netId, secure) {} in VirtualNetwork()
|
D | main.cpp | 73 void getNetworkContextCallback(uint32_t netId, uint32_t uid, android_net_context* netcontext) { in getNetworkContextCallback()
|
/system/netd/server/aidl_api/netd_event_listener_interface/1/android/net/metrics/ |
D | INetdEventListener.aidl | 20 …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/aidl_api/netd_event_listener_interface/current/android/net/metrics/ |
D | INetdEventListener.aidl | 21 …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/binder/android/net/metrics/ |
D | INetdEventListener.aidl | 51 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_aidl_interface/4/android/net/ |
D | INetd.aidl | 24 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/5/android/net/ |
D | INetd.aidl | 24 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/ |
D | INetd.aidl | 24 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/current/android/net/ |
D | INetd.aidl | 43 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical() 47 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn() 48 void networkDestroy(int netId); in networkDestroy() 49 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface() 50 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface() 51 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges() 52 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges() 102 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet() 104 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute() 105 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute() [all …]
|
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/ |
D | INetd.aidl | 43 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical() 47 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn() 48 void networkDestroy(int netId); in networkDestroy() 49 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface() 50 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface() 51 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges() 52 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges() 102 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet() 104 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute() 105 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute() [all …]
|
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/ |
D | INetd.aidl | 43 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical() 47 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn() 48 void networkDestroy(int netId); in networkDestroy() 49 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface() 50 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface() 51 void networkAddUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkAddUidRanges() 52 void networkRemoveUidRanges(int netId, in android.net.UidRangeParcel[] uidRanges); in networkRemoveUidRanges() 102 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet() 104 …void networkAddRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, in … in networkAddRoute() 105 …void networkRemoveRoute(int netId, in @utf8InCpp String ifName, in @utf8InCpp String destination, … in networkRemoveRoute() [all …]
|
/system/netd/server/binder/android/net/ |
D | INetd.aidl | 83 void networkCreatePhysical(int netId, int permission); in networkCreatePhysical() 95 void networkCreateVpn(int netId, boolean secure); in networkCreateVpn() 106 void networkDestroy(int netId); in networkDestroy() 118 void networkAddInterface(int netId, in @utf8InCpp String iface); in networkAddInterface() 129 void networkRemoveInterface(int netId, in @utf8InCpp String iface); in networkRemoveInterface() 142 void networkAddUidRanges(int netId, in UidRangeParcel[] uidRanges); in networkAddUidRanges() 155 void networkRemoveUidRanges(int netId, in UidRangeParcel[] uidRanges); in networkRemoveUidRanges() 767 void tetherDnsSet(int netId, in @utf8InCpp String[] dnsAddrs); in tetherDnsSet() 814 int netId, in networkAddRoute() 832 int netId, in networkRemoveRoute() [all …]
|
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/ |
D | INetd.aidl | 6 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/ |
D | NetdClient.cpp | 195 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/ |
D | INetd.aidl | 23 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/ |
D | Fwmark.h | 27 unsigned netId : 16; member
|