mirror of https://github.com/aya-rs/aya
integration-test: clang-format C files
parent
bcbb7e08fa
commit
72afd877b5
@ -1,10 +1,9 @@
|
|||||||
|
// clang-format off
|
||||||
#include <linux/bpf.h>
|
#include <linux/bpf.h>
|
||||||
#include <bpf/bpf_helpers.h>
|
#include <bpf/bpf_helpers.h>
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
SEC("xdp")
|
SEC("xdp")
|
||||||
int xdp_drop(struct xdp_md *ctx)
|
int xdp_drop(struct xdp_md *ctx) { return XDP_DROP; }
|
||||||
{
|
|
||||||
return XDP_DROP;
|
|
||||||
}
|
|
||||||
|
|
||||||
char _license[] SEC("license") = "GPL";
|
char _license[] SEC("license") = "GPL";
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
|
// clang-format off
|
||||||
#include <linux/bpf.h>
|
#include <linux/bpf.h>
|
||||||
#include <bpf/bpf_helpers.h>
|
#include <bpf/bpf_helpers.h>
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
SEC("xdp")
|
SEC("xdp")
|
||||||
int xdp_pass(struct xdp_md *ctx)
|
int xdp_pass(struct xdp_md *ctx) { return XDP_PASS; }
|
||||||
{
|
|
||||||
return XDP_PASS;
|
|
||||||
}
|
|
||||||
|
|
||||||
char _license[] SEC("license") = "GPL";
|
char _license[] SEC("license") = "GPL";
|
||||||
|
Loading…
Reference in New Issue