Lines Matching refs:skb
77 static SEC("cgroup_skb/uid/ingress") int bpf_cgroup_skb_uid_ingress(struct __sk_buff *skb)
79 uint32_t sock_uid = bpf_get_socket_uid(skb);
90 __sync_fetch_and_add(&value->rx_bytes, skb->len);
98 static SEC("cgroup_skb/uid/egress") int bpf_cgroup_skb_uid_egress(struct __sk_buff *skb)
100 uint32_t sock_uid = bpf_get_socket_uid(skb);
111 __sync_fetch_and_add(&value->tx_bytes, skb->len);
119 static SEC("socket/iface/ingress") void bpf_socket_iface_ingress(struct __sk_buff *skb)
121 uint32_t key = skb->ifindex;
132 __sync_fetch_and_add(&value->rx_bytes, skb->len);
139 static SEC("socket/iface/egress") void bpf_socket_iface_egress(struct __sk_buff *skb)
141 uint32_t key = skb->ifindex;
152 __sync_fetch_and_add(&value->tx_bytes, skb->len);