Searched refs:UidOwnerValue (Results 1 – 6 of 6) sorted by relevance
/system/netd/bpf_progs/ |
D | netd.c | 48 UidOwnerValue* whitelistMatch = bpf_uid_owner_map_lookup_elem(&sock_uid); in xt_bpf_whitelist_prog() 56 UidOwnerValue* blacklistMatch = bpf_uid_owner_map_lookup_elem(&sock_uid); in xt_bpf_blacklist_prog()
|
D | netd.h | 81 DEFINE_BPF_MAP(uid_owner_map, HASH, uint32_t, UidOwnerValue, UID_OWNER_MAP_SIZE) in DEFINE_BPF_MAP() 173 UidOwnerValue* uidEntry = bpf_uid_owner_map_lookup_elem(&uid); in bpf_owner_match()
|
/system/netd/server/ |
D | TrafficController.h | 201 BpfMap<uint32_t, UidOwnerValue> mUidOwnerMap GUARDED_BY(mMutex); 210 netdutils::Status removeRule(BpfMap<uint32_t, UidOwnerValue>& map, uint32_t uid, 213 netdutils::Status addRule(BpfMap<uint32_t, UidOwnerValue>& map, uint32_t uid,
|
D | TrafficController.cpp | 577 Status TrafficController::removeRule(BpfMap<uint32_t, UidOwnerValue>& map, uint32_t uid, in removeRule() 581 UidOwnerValue newMatch = {.rule = static_cast<uint8_t>(oldMatch.value().rule & ~match), in removeRule() 594 Status TrafficController::addRule(BpfMap<uint32_t, UidOwnerValue>& map, uint32_t uid, in addRule() 604 UidOwnerValue newMatch = {.rule = static_cast<uint8_t>(oldMatch.value().rule | match), in addRule() 608 UidOwnerValue newMatch = {.rule = static_cast<uint8_t>(match), .iif = iif}; in addRule() 678 const BpfMap<uint32_t, UidOwnerValue>&) { in replaceRulesInMap() argument 1092 const auto printUidMatchInfo = [&dw, this](const uint32_t& key, const UidOwnerValue& value, in dump() 1093 const BpfMap<uint32_t, UidOwnerValue>&) { in dump() argument
|
D | TrafficControllerTest.cpp | 73 BpfMap<uint32_t, UidOwnerValue> mFakeUidOwnerMap; 101 mFakeUidOwnerMap.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(UidOwnerValue), in SetUp() 170 StatusOr<UidOwnerValue> value = mFakeUidOwnerMap.readValue(uid); in checkUidOwnerRuleForChain() 200 StatusOr<UidOwnerValue> value = mFakeUidOwnerMap.readValue(uid); in checkEachUidValue() 206 const BpfMap<uint32_t, UidOwnerValue>&) { in checkEachUidValue() argument 227 StatusOr<UidOwnerValue> value = mFakeUidOwnerMap.readValue(uid); in expectUidOwnerMapValues() 610 StatusOr<UidOwnerValue> value = mFakeUidOwnerMap.readValue(uid); in TEST_F()
|
/system/netd/libnetdbpf/include/netdbpf/ |
D | bpf_shared.h | 112 } UidOwnerValue; typedef
|