Searched refs:vpnNetId (Results 1 – 6 of 6) sorted by relevance
/system/netd/server/ |
D | RouteController.h | 105 static int addVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, 107 static int removeVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, 133 static int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId,
|
D | NetworkController.cpp | 74 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() 813 int NetworkController::modifyFallthroughLocked(unsigned vpnNetId, bool add) { in modifyFallthroughLocked() argument 828 if (int ret = mDelegateImpl->modifyFallthrough(vpnNetId, physicalInterface, permission, in modifyFallthroughLocked()
|
D | RouteController.cpp | 606 WARN_UNUSED_RESULT int RouteController::modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, in modifyVpnFallthroughRule() argument 617 fwmark.netId = vpnNetId; in modifyVpnFallthroughRule() 1082 int RouteController::addVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, in addVirtualNetworkFallthrough() argument 1084 return modifyVpnFallthroughRule(RTM_NEWRULE, vpnNetId, physicalInterface, permission); in addVirtualNetworkFallthrough() 1087 int RouteController::removeVirtualNetworkFallthrough(unsigned vpnNetId, in removeVirtualNetworkFallthrough() argument 1090 return modifyVpnFallthroughRule(RTM_DELRULE, vpnNetId, physicalInterface, permission); in removeVirtualNetworkFallthrough()
|
D | NetworkController.h | 163 int modifyFallthroughLocked(unsigned vpnNetId, bool add) WARN_UNUSED_RESULT;
|
/system/netd/tests/ |
D | binder_test.cpp | 154 void createVpnNetworkWithUid(bool secure, uid_t uid, int vpnNetId = TEST_NETID2, 3103 void BinderTest::createVpnNetworkWithUid(bool secure, uid_t uid, int vpnNetId, in createVpnNetworkWithUid() argument 3116 EXPECT_TRUE(mNetd->networkCreateVpn(vpnNetId, secure).isOk()); in createVpnNetworkWithUid() 3119 EXPECT_TRUE(mNetd->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in createVpnNetworkWithUid() 3120 EXPECT_TRUE(mNetd->networkAddInterface(vpnNetId, sTun2.name()).isOk()); in createVpnNetworkWithUid() 3185 void expectVpnFallthroughRuleExists(const std::string& ifName, int vpnNetId) { in expectVpnFallthroughRuleExists() argument 3188 RULE_PRIORITY_VPN_FALLTHROUGH, vpnNetId, ifName.c_str()); in expectVpnFallthroughRuleExists() 3196 const TunInterface& vpnNetwork, int vpnNetId = TEST_NETID2, in expectVpnFallthroughWorks() argument 3229 expectVpnFallthroughRuleExists(fallthroughNetwork.name(), vpnNetId); in expectVpnFallthroughWorks() 3234 EXPECT_EQ(bypassable ? vpnNetId : fallthroughNetId, static_cast<int>(fwmark.intValue)); in expectVpnFallthroughWorks() [all …]
|
/system/netd/resolv/ |
D | resolver_test.cpp | 3406 void expectDnsNetIdWithVpn(android::net::INetd* netdService, unsigned vpnNetId, in expectDnsNetIdWithVpn() argument 3408 EXPECT_TRUE(netdService->networkCreateVpn(vpnNetId, false /* secure */).isOk()); in expectDnsNetIdWithVpn() 3411 EXPECT_TRUE(netdService->networkAddUidRanges(vpnNetId, {makeUidRangeParcel(uid, uid)}).isOk()); in expectDnsNetIdWithVpn() 3413 EXPECT_TRUE(netdService->networkDestroy(vpnNetId).isOk()); in expectDnsNetIdWithVpn()
|