Lines Matching refs:direction
101 int direction, TypeOfKey* key) { \
121 if (direction == BPF_EGRESS) { \
124 } else if (direction == BPF_INGRESS) { \
185 static inline int bpf_owner_match(struct __sk_buff* skb, uint32_t uid, int direction) { in bpf_owner_match() argument
207 if (direction == BPF_INGRESS && (uidRules & IIF_MATCH)) { in bpf_owner_match()
216 static __always_inline inline void update_stats_with_config(struct __sk_buff* skb, int direction, in update_stats_with_config() argument
219 update_stats_map_A(skb, direction, key); in update_stats_with_config()
221 update_stats_map_B(skb, direction, key); in update_stats_with_config()
225 static __always_inline inline int bpf_traffic_account(struct __sk_buff* skb, int direction) { in bpf_traffic_account() argument
233 int match = bpf_owner_match(skb, sock_uid, direction); in bpf_traffic_account()
234 if ((direction == BPF_EGRESS) && (match == BPF_DROP)) { in bpf_traffic_account()
274 update_stats_with_config(skb, direction, &key, *selectedMap); in bpf_traffic_account()
278 update_stats_with_config(skb, direction, &key, *selectedMap); in bpf_traffic_account()
279 update_app_uid_stats_map(skb, direction, &uid); in bpf_traffic_account()