Lines Matching refs:vpnNetId
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()
3404 EXPECT_EQ(bypassable ? vpnNetId : fallthroughNetId, static_cast<int>(fwmark.intValue)); in expectVpnFallthroughWorks()
3407 setNetworkForProcess(vpnNetId); in expectVpnFallthroughWorks()
3412 EXPECT_EQ(vpnNetId | 0xF0000, static_cast<int>(fwmark.intValue)); in expectVpnFallthroughWorks()
3417 EXPECT_EQ(vpnNetId | 0xF0000, static_cast<int>(fwmark.intValue)); in expectVpnFallthroughWorks()