Searched refs:vpnNetId (Results 1 – 5 of 5) sorted by relevance
/system/netd/server/ |
D | RouteController.h | 104 [[nodiscard]] static int addVirtualNetworkFallthrough(unsigned vpnNetId, 107 [[nodiscard]] static int removeVirtualNetworkFallthrough(unsigned vpnNetId, 135 static int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId,
|
D | NetworkController.cpp | 73 [[nodiscard]] int modifyFallthrough(unsigned vpnNetId, const std::string& physicalInterface, 95 int NetworkController::DelegateImpl::modifyFallthrough(unsigned vpnNetId, in modifyFallthrough() argument 99 if (int ret = RouteController::addVirtualNetworkFallthrough(vpnNetId, in modifyFallthrough() 103 vpnNetId); in modifyFallthrough() 107 if (int ret = RouteController::removeVirtualNetworkFallthrough(vpnNetId, in modifyFallthrough() 111 vpnNetId); in modifyFallthrough() 843 int NetworkController::modifyFallthroughLocked(unsigned vpnNetId, bool add) { in modifyFallthroughLocked() argument 858 if (int ret = mDelegateImpl->modifyFallthrough(vpnNetId, physicalInterface, permission, in modifyFallthroughLocked()
|
D | RouteController.cpp | 635 int RouteController::modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, in modifyVpnFallthroughRule() argument 646 fwmark.netId = vpnNetId; in modifyVpnFallthroughRule() 1163 int RouteController::addVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, in addVirtualNetworkFallthrough() argument 1165 return modifyVpnFallthroughRule(RTM_NEWRULE, vpnNetId, physicalInterface, permission); in addVirtualNetworkFallthrough() 1168 int RouteController::removeVirtualNetworkFallthrough(unsigned vpnNetId, in removeVirtualNetworkFallthrough() argument 1171 return modifyVpnFallthroughRule(RTM_DELRULE, vpnNetId, physicalInterface, permission); in removeVirtualNetworkFallthrough()
|
D | NetworkController.h | 168 [[nodiscard]] int modifyFallthroughLocked(unsigned vpnNetId, bool add);
|
/system/netd/tests/ |
D | binder_test.cpp | 169 void createVpnNetworkWithUid(bool secure, uid_t uid, int vpnNetId = TEST_NETID2, 3265 void NetdBinderTest::createVpnNetworkWithUid(bool secure, uid_t uid, int vpnNetId, in createVpnNetworkWithUid() argument 3278 EXPECT_TRUE(mNetd->networkCreateVpn(vpnNetId, secure).isOk()); in createVpnNetworkWithUid() 3281 EXPECT_TRUE(mNetd->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in createVpnNetworkWithUid() 3282 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun2.name()).isOk()); in createVpnNetworkWithUid() 3351 void expectVpnFallthroughRuleExists(const std::string& ifName, int vpnNetId) { in expectVpnFallthroughRuleExists() argument 3354 RULE_PRIORITY_VPN_FALLTHROUGH, vpnNetId, ifName.c_str()); in expectVpnFallthroughRuleExists() 3362 const TunInterface& vpnNetwork, int vpnNetId = TEST_NETID2, in expectVpnFallthroughWorks() argument 3395 expectVpnFallthroughRuleExists(fallthroughNetwork.name(), vpnNetId); in expectVpnFallthroughWorks() 3400 EXPECT_EQ(bypassable ? vpnNetId : fallthroughNetId, static_cast<int>(fwmark.intValue)); in expectVpnFallthroughWorks() [all …]
|