Home
last modified time | relevance | path

Searched refs:vpnNetId (Results 1 – 5 of 5) sorted by relevance

/system/netd/server/
DRouteController.h156 [[nodiscard]] static int addVirtualNetworkFallthrough(unsigned vpnNetId,
159 [[nodiscard]] static int removeVirtualNetworkFallthrough(unsigned vpnNetId,
201 static int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId,
DNetworkController.cpp74 [[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()
DRouteController.cpp622 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()
DNetworkController.h172 [[nodiscard]] int modifyFallthroughLocked(unsigned vpnNetId, bool add);
/system/netd/tests/
Dbinder_test.cpp211 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 …]