Home
last modified time | relevance | path

Searched refs:ingress (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/netfirewall/
H A Dnetfirewall_match.h154 bool ingress = tuple->dir == INGRESS; in match_addrs() local
166 result = lookup_map(GET_MAP(ingress, saddr), &lpm_key, &other_lpm_key); in match_addrs()
173 result = lookup_map(GET_MAP(ingress, daddr), &lpm_key, &other_lpm_key); in match_addrs()
187 result = lookup_map(GET_MAP(ingress, saddr6), &lpm_key, &other_lpm_key); in match_addrs()
194 result = lookup_map(GET_MAP(ingress, daddr6), &lpm_key, &other_lpm_key); in match_addrs()
216 bool ingress = tuple->dir == INGRESS; in match_ports() local
219 result = lookup_map(GET_MAP(ingress, sport), &(tuple->sport), &other_port_key); in match_ports()
225 result = lookup_map(GET_MAP(ingress, dport), &(tuple->dport), &other_port_key); in match_ports()
247 bool ingress = tuple->dir == INGRESS; in match_protocol() local
250 result = lookup_map(GET_MAP(ingress, prot in match_protocol()
273 bool ingress = tuple->dir == INGRESS; match_appuid() local
299 bool ingress = tuple->dir == INGRESS; match_uid() local
384 bool ingress = tuple->dir == INGRESS; match_action() local
[all...]
H A Dnetfirewall_map_def.h58 #define GET_MAP_PATH(ingress, name) ((ingress) ? MAPS_DIR() "in_" #name "_map" : MAPS_DIR() "out_" #name "_map")
59 #define GET_MAP(ingress, name) ((ingress) ? &in_##name##_map : &out_##name##_map)
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_netfirewall.cpp211 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); in ClearBpfFirewallRules() local
212 ClearBpfMap(GET_MAP_PATH(ingress, saddr), ip4Key, ruleCode); in ClearBpfFirewallRules()
213 ClearBpfMap(GET_MAP_PATH(ingress, saddr6), ip6Key, ruleCode); in ClearBpfFirewallRules()
214 ClearBpfMap(GET_MAP_PATH(ingress, daddr), ip4Key, ruleCode); in ClearBpfFirewallRules()
215 ClearBpfMap(GET_MAP_PATH(ingress, daddr6), ip6Key, ruleCode); in ClearBpfFirewallRules()
216 ClearBpfMap(GET_MAP_PATH(ingress, sport), portKey, ruleCode); in ClearBpfFirewallRules()
217 ClearBpfMap(GET_MAP_PATH(ingress, dport), portKey, ruleCode); in ClearBpfFirewallRules()
218 ClearBpfMap(GET_MAP_PATH(ingress, proto), protoKey, ruleCode); in ClearBpfFirewallRules()
219 ClearBpfMap(GET_MAP_PATH(ingress, appuid), appIdKey, ruleCode); in ClearBpfFirewallRules()
220 ClearBpfMap(GET_MAP_PATH(ingress, ui in ClearBpfFirewallRules()
346 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteSrcIpv4BpfMap() local
366 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteSrcIpv6BpfMap() local
385 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteDstIpv4BpfMap() local
405 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteDstIpv6BpfMap() local
425 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteSrcPortBpfMap() local
443 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteDstPortBpfMap() local
461 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteProtoBpfMap() local
479 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteAppUidBpfMap() local
497 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteUidBpfMap() local
515 bool ingress = (direction == NetFirewallRuleDirection::RULE_IN); WriteActionBpfMap() local
[all...]

Completed in 3 milliseconds