13 lines · c
1// SPDX-License-Identifier: GPL-2.02#include <linux/bpf.h>3#include <bpf/bpf_helpers.h>4#include "bpf_legacy.h"5 6SEC("tc")7int entry(struct __sk_buff *skb)8{9 return 1;10}11 12char __license[] SEC("license") = "GPL";13 1// SPDX-License-Identifier: GPL-2.02#include <linux/bpf.h>3#include <bpf/bpf_helpers.h>4#include "bpf_legacy.h"5 6SEC("tc")7int entry(struct __sk_buff *skb)8{9 return 1;10}11 12char __license[] SEC("license") = "GPL";13