File Index
Files and directories
Sign in
FILE

cgroup_skb_direct_packet_access.c

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/bpf/progs/cgroup_skb_direct_packet_access.c C
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include "vmlinux.h"
 4#include <bpf/bpf_helpers.h>
 5
 6__u32 data_end;
 7
 8SEC("cgroup_skb/ingress")
 9int direct_packet_access(struct __sk_buff *skb)
10{
11	data_end = skb->data_end;
12	return 1;
13}
14
15char _license[] SEC("license") = "GPL";
~/ Read-only file preview.