Searched refs:enabledRules (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Connectivity/DnsResolver/ |
D | DnsBpfHelperTest.cpp | 67 const uint32_t enabledRules; in TEST_F() member 73 uid, enabledRules, uidRules, expectedResult); in TEST_F() 124 config.enabledRules, BPF_EXIST)); in TEST_F() 150 const uint32_t enabledRules; // Settings in configuration map. in TEST_F() member 157 enabledRules, dataSaverEnabled, uidRules, blocked); in TEST_F() 196 config.enabledRules, BPF_EXIST)); in TEST_F()
|
D | DnsBpfHelper.cpp | 55 auto enabledRules = mConfigurationMap.readValue(UID_RULES_CONFIGURATION_KEY); in isUidNetworkingBlocked() local 56 RETURN_IF_RESULT_NOT_OK(enabledRules); in isUidNetworkingBlocked() 62 if (isBlockedByUidRules(enabledRules.value(), uidRules)) return true; in isUidNetworkingBlocked()
|
/packages/modules/Connectivity/bpf_progs/ |
D | netd.h | 266 static inline bool isBlockedByUidRules(BpfConfig enabledRules, uint32_t uidRules) { in isBlockedByUidRules() argument 267 return enabledRules & (DROP_IF_SET | DROP_IF_UNSET) & (uidRules ^ DROP_IF_UNSET); in isBlockedByUidRules()
|
D | netd.c | 416 BpfConfig enabledRules = getConfig(UID_RULES_CONFIGURATION_KEY); in bpf_owner_match() local 419 if (skb->ifindex == 1) enabledRules &= ~BACKGROUND_MATCH; in bpf_owner_match() 425 if (isBlockedByUidRules(enabledRules, uidRules)) return DROP; in bpf_owner_match()
|