Searched refs:vpnNetId (Results 1 – 5 of 5) sorted by relevance
/system/netd/server/ |
D | RouteController.h | 156 [[nodiscard]] static int addVirtualNetworkFallthrough(unsigned vpnNetId, 159 [[nodiscard]] static int removeVirtualNetworkFallthrough(unsigned vpnNetId, 201 static int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId,
|
D | NetworkController.cpp | 74 [[nodiscard]] int modifyFallthrough(unsigned vpnNetId, const std::string& physicalInterface, 96 int NetworkController::DelegateImpl::modifyFallthrough(unsigned vpnNetId, in modifyFallthrough() argument 100 if (int ret = RouteController::addVirtualNetworkFallthrough(vpnNetId, in modifyFallthrough() 104 vpnNetId); in modifyFallthrough() 108 if (int ret = RouteController::removeVirtualNetworkFallthrough(vpnNetId, in modifyFallthrough() 112 vpnNetId); in modifyFallthrough() 909 int NetworkController::modifyFallthroughLocked(unsigned vpnNetId, bool add) { in modifyFallthroughLocked() argument 924 if (int ret = mDelegateImpl->modifyFallthrough(vpnNetId, physicalInterface, permission, in modifyFallthroughLocked()
|
D | RouteController.cpp | 622 int RouteController::modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, in modifyVpnFallthroughRule() argument 633 fwmark.netId = vpnNetId; in modifyVpnFallthroughRule() 1312 int RouteController::addVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, in addVirtualNetworkFallthrough() argument 1314 return modifyVpnFallthroughRule(RTM_NEWRULE, vpnNetId, physicalInterface, permission); in addVirtualNetworkFallthrough() 1317 int RouteController::removeVirtualNetworkFallthrough(unsigned vpnNetId, in removeVirtualNetworkFallthrough() argument 1320 return modifyVpnFallthroughRule(RTM_DELRULE, vpnNetId, physicalInterface, permission); in removeVirtualNetworkFallthrough()
|
D | NetworkController.h | 172 [[nodiscard]] int modifyFallthroughLocked(unsigned vpnNetId, bool add);
|
/system/netd/tests/ |
D | binder_test.cpp | 211 void createVpnNetworkWithUid(bool secure, uid_t uid, int vpnNetId = TEST_NETID2, 222 void createVpnAndOtherPhysicalNetwork(int systemDefaultNetId, int otherNetId, int vpnNetId, 226 int vpnNetId, bool secure, 3214 void NetdBinderTest::createVpnNetworkWithUid(bool secure, uid_t uid, int vpnNetId, in createVpnNetworkWithUid() argument 3229 config.netId = vpnNetId; in createVpnNetworkWithUid() 3235 EXPECT_TRUE(mNetd->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in createVpnNetworkWithUid() 3236 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun2.name()).isOk()); in createVpnNetworkWithUid() 3277 int vpnNetId, bool secure) { in createVpnAndOtherPhysicalNetwork() argument 3280 auto config = makeNativeNetworkConfig(vpnNetId, NativeNetworkType::VIRTUAL, in createVpnAndOtherPhysicalNetwork() 3283 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun3.name()).isOk()); in createVpnAndOtherPhysicalNetwork() [all …]
|