aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/bpf/test_lwt_bpf.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2023-01-15 16:16:12 +0900
committerAlexei Starovoitov <ast@kernel.org>2023-01-15 13:32:45 -0800
commite8acf8f47a5d58a00fbfa0f3592bbaaff557cec3 (patch)
tree526e205b4251f0c2705cbf7d5c7204c63fabc8d0 /samples/bpf/test_lwt_bpf.c
parentsamples/bpf: replace BPF programs header with net_shared.h (diff)
downloadwireguard-linux-e8acf8f47a5d58a00fbfa0f3592bbaaff557cec3.tar.xz
wireguard-linux-e8acf8f47a5d58a00fbfa0f3592bbaaff557cec3.zip
samples/bpf: use vmlinux.h instead of implicit headers in BPF test program
This commit applies vmlinux.h to BPF functionality testing program. Macros that were not defined despite migration to "vmlinux.h" were defined separately in individual files. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Link: https://lore.kernel.org/r/20230115071613.125791-10-danieltimlee@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/test_lwt_bpf.c')
-rw-r--r--samples/bpf/test_lwt_bpf.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/samples/bpf/test_lwt_bpf.c b/samples/bpf/test_lwt_bpf.c
index fc093fbc760a..9a13dbb81847 100644
--- a/samples/bpf/test_lwt_bpf.c
+++ b/samples/bpf/test_lwt_bpf.c
@@ -10,17 +10,8 @@
* General Public License for more details.
*/
+#include "vmlinux.h"
#include "net_shared.h"
-#include <stdint.h>
-#include <stddef.h>
-#include <linux/bpf.h>
-#include <linux/ip.h>
-#include <linux/in.h>
-#include <linux/in6.h>
-#include <linux/tcp.h>
-#include <linux/udp.h>
-#include <linux/icmpv6.h>
-#include <linux/if_ether.h>
#include <bpf/bpf_helpers.h>
#include <string.h>