Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Mar 24-27, 2025, special US time zones
Register
Loading...
Note: File does not exist in v4.6.
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include <linux/bpf.h>
 4#include <bpf/bpf_helpers.h>
 5
 6char _license[] SEC("license") = "GPL";
 7
 8__u32 load_offset = 0;
 9int test_result = 0;
10
11SEC("tc")
12int skb_process(struct __sk_buff *skb)
13{
14	char buf[16];
15
16	test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10);
17
18	return 0;
19}