Searched refs:GET_MAP (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/netfirewall/ |
H A D | netfirewall_match.h | 166 result = lookup_map(GET_MAP(ingress, saddr), &lpm_key, &other_lpm_key); in match_addrs() 174 result = lookup_map(GET_MAP(ingress, daddr), &lpm_key, &other_lpm_key); in match_addrs() 189 result = lookup_map(GET_MAP(ingress, saddr6), &lpm_key, &other_lpm_key); in match_addrs() 196 result = lookup_map(GET_MAP(ingress, daddr6), &lpm_key, &other_lpm_key); in match_addrs() 221 result = lookup_map(GET_MAP(ingress, sport), &(tuple->sport), &other_port_key); in match_ports() 227 result = lookup_map(GET_MAP(ingress, dport), &(tuple->dport), &other_port_key); in match_ports() 252 result = lookup_map(GET_MAP(ingress, proto), &(tuple->protocol), &other_proto_key); in match_protocol() 278 result = lookup_map(GET_MAP(ingress, appuid), &(tuple->appuid), &other_appuid_key); in match_appuid() 304 result = lookup_map(GET_MAP(ingress, uid), &(tuple->uid), &other_uid_key); in match_uid() 369 struct bitmap *action_bitmap = bpf_map_lookup_elem(GET_MAP(ingress, action), &akey); in match_action()
|
H A D | netfirewall_map_def.h | 57 #define GET_MAP(ingress, name) ((ingress) ? &in_##name##_map : &out_##name##_map) macro
|