/system/netd/server/ |
D | UnreachableNetwork.cpp | 29 int UnreachableNetwork::addUsers(const UidRanges& uidRanges, uint32_t subPriority) { in addUsers() argument 30 if (!isValidSubPriority(subPriority) || !canAddUidRanges(uidRanges, subPriority)) { in addUsers() 34 int ret = RouteController::addUsersToUnreachableNetwork(mNetId, {{subPriority, uidRanges}}); in addUsers() 39 addToUidRangeMap(uidRanges, subPriority); in addUsers() 43 int UnreachableNetwork::removeUsers(const UidRanges& uidRanges, uint32_t subPriority) { in removeUsers() argument 44 if (!isValidSubPriority(subPriority)) return -EINVAL; in removeUsers() 47 RouteController::removeUsersFromUnreachableNetwork(mNetId, {{subPriority, uidRanges}}); in removeUsers() 52 removeFromUidRangeMap(uidRanges, subPriority); in removeUsers()
|
D | Network.cpp | 89 bool Network::appliesToUser(uid_t uid, uint32_t* subPriority) const { in appliesToUser() 92 *subPriority = priority; in appliesToUser() 99 void Network::addToUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority) { in addToUidRangeMap() argument 100 auto iter = mUidRangeMap.find(subPriority); in addToUidRangeMap() 104 mUidRangeMap[subPriority] = uidRanges; in addToUidRangeMap() 108 void Network::removeFromUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority) { in removeFromUidRangeMap() argument 109 auto iter = mUidRangeMap.find(subPriority); in removeFromUidRangeMap() 113 mUidRangeMap.erase(subPriority); in removeFromUidRangeMap() 116 ALOGW("uidRanges with priority %u not found", subPriority); in removeFromUidRangeMap() 120 bool Network::canAddUidRanges(const UidRanges& uidRanges, uint32_t subPriority) const { in canAddUidRanges() [all …]
|
D | VirtualNetwork.cpp | 34 int VirtualNetwork::addUsers(const UidRanges& uidRanges, uint32_t subPriority) { in addUsers() argument 35 if (!isValidSubPriority(subPriority) || !canAddUidRanges(uidRanges, subPriority)) { in addUsers() 41 {{subPriority, uidRanges}}); in addUsers() 47 addToUidRangeMap(uidRanges, subPriority); in addUsers() 51 int VirtualNetwork::removeUsers(const UidRanges& uidRanges, uint32_t subPriority) { in removeUsers() argument 52 if (!isValidSubPriority(subPriority)) return -EINVAL; in removeUsers() 56 {{subPriority, uidRanges}}); in removeUsers() 62 removeFromUidRangeMap(uidRanges, subPriority); in removeUsers()
|
D | PhysicalNetwork.cpp | 161 int PhysicalNetwork::addUsers(const UidRanges& uidRanges, uint32_t subPriority) { in addUsers() argument 162 if (!isValidSubPriority(subPriority) || !canAddUidRanges(uidRanges, subPriority)) { in addUsers() 168 {{subPriority, uidRanges}}); in addUsers() 174 addToUidRangeMap(uidRanges, subPriority); in addUsers() 178 int PhysicalNetwork::removeUsers(const UidRanges& uidRanges, uint32_t subPriority) { in removeUsers() argument 179 if (!isValidSubPriority(subPriority)) return -EINVAL; in removeUsers() 183 {{subPriority, uidRanges}}); in removeUsers() 189 removeFromUidRangeMap(uidRanges, subPriority); in removeUsers()
|
D | Network.h | 50 bool appliesToUser(uid_t uid, uint32_t* subPriority) const; 63 virtual void addToUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority); 64 virtual void removeFromUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority); 68 bool canAddUidRanges(const UidRanges& uidRanges, uint32_t subPriority) const;
|
D | UnreachableNetwork.h | 26 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override; 27 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
|
D | RouteController.cpp | 495 uint32_t subPriority, bool secure, bool add) { in modifyVpnUidRangeRule() argument 513 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority + subPriority, table, in modifyVpnUidRangeRule() 548 uid_t uidEnd, uint32_t subPriority, bool add) { in modifyExplicitNetworkRule() argument 562 RULE_PRIORITY_EXPLICIT_NETWORK + subPriority, table, fwmark.intValue, in modifyExplicitNetworkRule() 572 uid_t uidEnd, uint32_t subPriority, bool add) { in modifyOutputInterfaceRules() argument 591 RULE_PRIORITY_OUTPUT_INTERFACE + subPriority, table, fwmark.intValue, in modifyOutputInterfaceRules() 744 uid_t uidEnd, uint32_t subPriority, bool add, in modifyUidNetworkRule() argument 765 explicitSelect ? (RULE_PRIORITY_UID_EXPLICIT_NETWORK + subPriority) in modifyUidNetworkRule() 766 : (RULE_PRIORITY_UID_IMPLICIT_NETWORK + subPriority), in modifyUidNetworkRule() 772 uint32_t subPriority, bool add) { in modifyUidDefaultNetworkRule() argument [all …]
|
D | VirtualNetwork.h | 36 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override; 37 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
|
D | NetworkController.cpp | 620 uint32_t subPriority) { in addUsersToNetwork() argument 626 return network->addUsers(uidRanges, subPriority); in addUsersToNetwork() 630 uint32_t subPriority) { in removeUsersFromNetwork() argument 636 return network->removeUsers(uidRanges, subPriority); in removeUsersFromNetwork() 786 uint32_t subPriority; in getVirtualNetworkForUserLocked() local 788 if (network->isVirtual() && network->appliesToUser(uid, &subPriority)) { in getVirtualNetworkForUserLocked() 803 uint32_t subPriority; in getPhysicalOrUnreachableNetworkForUserLocked() local 805 if (!network->appliesToUser(uid, &subPriority)) continue; in getPhysicalOrUnreachableNetworkForUserLocked() 806 if (subPriority < bestSubPriority) { in getPhysicalOrUnreachableNetworkForUserLocked() 808 bestSubPriority = subPriority; in getPhysicalOrUnreachableNetworkForUserLocked() [all …]
|
D | PhysicalNetwork.h | 45 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override; 46 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
|
D | NetworkController.h | 123 uint32_t subPriority); 125 uint32_t subPriority);
|
D | NetdNativeService.cpp | 421 config.subPriority); in networkAddUidRangesParcel() 428 config.subPriority); in networkRemoveUidRangesParcel()
|
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/netd/aidl/ |
D | NativeUidRangeConfig.aidl | 40 int subPriority;
|
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/netd/aidl/ |
D | NativeUidRangeConfig.aidl | 40 int subPriority;
|
/system/netd/server/binder/android/net/netd/aidl/ |
D | NativeUidRangeConfig.aidl | 40 int subPriority;
|
/system/netd/tests/ |
D | binder_test.cpp | 617 uint32_t subPriority) { in makeNativeUidRangeConfig() argument 621 res.subPriority = subPriority; in makeNativeUidRangeConfig() 3979 const std::string& iface, uint32_t subPriority) { in verifyAppUidRules() argument 3985 ipRuleExistsForRange(RULE_PRIORITY_UID_EXPLICIT_NETWORK + subPriority, in verifyAppUidRules() 3988 ipRuleExistsForRange(RULE_PRIORITY_UID_IMPLICIT_NETWORK + subPriority, in verifyAppUidRules() 3991 ipRuleExistsForRange(RULE_PRIORITY_UID_DEFAULT_NETWORK + subPriority, in verifyAppUidRules() 3998 ipRuleExistsForRange(RULE_PRIORITY_UID_EXPLICIT_NETWORK + subPriority, in verifyAppUidRules() 4001 ipRuleExistsForRange(RULE_PRIORITY_UID_IMPLICIT_NETWORK + subPriority, in verifyAppUidRules() 4004 ipRuleExistsForRange(RULE_PRIORITY_UID_DEFAULT_UNREACHABLE + subPriority, in verifyAppUidRules() 4013 uidRangeConfig.subPriority); in verifyAppUidRules() [all …]
|