Home
last modified time | relevance | path

Searched refs:IIF_MATCH (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.cpp61 if (match == IIF_MATCH && iif == 0) { in addRule()
64 } else if (match != IIF_MATCH && iif != 0) { in addRule()
95 .iif = (match == IIF_MATCH) ? 0 : oldMatch.value().iif, in removeRule()
114 auto res = addRule(uid, IIF_MATCH, iif); in addUidInterfaceRules()
122 auto res = removeRule(uid, IIF_MATCH); in removeUidInterfaceRules()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java28 import static android.net.BpfNetMapsConstants.IIF_MATCH;
393 doTestUpdateUidLockdownRule(TEST_IF_INDEX, LOCKDOWN_VPN_MATCH | IIF_MATCH, REMOVE); in testUpdateUidLockdownRuleRemoveLockdown()
414 checkUidOwnerValue(uid0, TEST_IF_INDEX, IIF_MATCH); in testAddUidInterfaceRules()
415 checkUidOwnerValue(uid1, TEST_IF_INDEX, IIF_MATCH); in testAddUidInterfaceRules()
430 checkUidOwnerValue(uid0, TEST_IF_INDEX, match0 | IIF_MATCH); in testAddUidInterfaceRulesWithOtherMatch()
431 checkUidOwnerValue(uid1, TEST_IF_INDEX, match1 | IIF_MATCH); in testAddUidInterfaceRulesWithOtherMatch()
439 final long match0 = IIF_MATCH; in testAddUidInterfaceRulesWithExistingIifMatch()
440 final long match1 = IIF_MATCH | DOZABLE_MATCH | POWERSAVE_MATCH | RESTRICTED_MATCH; in testAddUidInterfaceRulesWithExistingIifMatch()
463 final long match0 = IIF_MATCH; in testAddUidInterfaceRulesWithNullInterface()
464 final long match1 = IIF_MATCH | DOZABLE_MATCH | POWERSAVE_MATCH | RESTRICTED_MATCH; in testAddUidInterfaceRulesWithNullInterface()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DBpfNetMapsConstants.java79 public static final long IIF_MATCH = (1 << 7); field in BpfNetMapsConstants
95 Pair.create(IIF_MATCH, "IIF_MATCH"),
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java26 import static android.net.BpfNetMapsConstants.IIF_MATCH;
401 (match == IIF_MATCH) ? 0 : oldMatch.iif, in removeRule()
418 if (match != IIF_MATCH && iif != 0) { in addRule()
430 (match == IIF_MATCH) ? iif : oldMatch.iif, in addRule()
686 addRule(uid, IIF_MATCH, ifIndex, "addUidInterfaceRules"); in addUidInterfaceRules()
712 removeRule(uid, IIF_MATCH, "removeUidInterfaceRules"); in removeUidInterfaceRules()
1068 if ((match.rule & IIF_MATCH) != 0) { in dump()
/packages/modules/Connectivity/bpf_progs/
Dnetd.h199 IIF_MATCH = (1 << 7), enumerator
Dnetd.c429 if (uidRules & IIF_MATCH) { in bpf_owner_match()