Home
last modified time | relevance | path

Searched refs:value_cookie (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dnetsys.c302 app_cookie_stats_value *value_cookie = bpf_map_lookup_elem(&app_cookie_stats_map, &sock_cookie); in bpf_cgroup_skb_uid_ingress() local
303 if (value_cookie == NULL) { in bpf_cgroup_skb_uid_ingress()
306 value_cookie = bpf_map_lookup_elem(&app_cookie_stats_map, &sock_cookie); in bpf_cgroup_skb_uid_ingress()
308 if (value_cookie != NULL) { in bpf_cgroup_skb_uid_ingress()
309 __sync_fetch_and_add(&value_cookie->rxPackets, 1); in bpf_cgroup_skb_uid_ingress()
310 __sync_fetch_and_add(&value_cookie->rxBytes, skb->len); in bpf_cgroup_skb_uid_ingress()
394 if (value_cookie == NULL) { in bpf_cgroup_skb_uid_egress()
397 value_cookie = bpf_map_lookup_elem(&app_cookie_stats_map, &sock_cookie); in bpf_cgroup_skb_uid_egress()
399 if (value_cookie != NULL) { in bpf_cgroup_skb_uid_egress()
400 __sync_fetch_and_add(&value_cookie->txPackets, 1); in bpf_cgroup_skb_uid_egress()
[all …]