diff --git a/.gitignore b/.gitignore index 16b067f..8dd078c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ hyp.secret hypd/hypd hyp/hyp hypd/hypdconfig.json -hypd/secrets/ \ No newline at end of file +hypd/secrets/ +hypd/server/*.o +env.sh diff --git a/hypd/server/hyp_bpf.c b/hypd/server/hyp_bpf.c index e327f57..15ad1b7 100644 --- a/hypd/server/hyp_bpf.c +++ b/hypd/server/hyp_bpf.c @@ -35,7 +35,7 @@ int xdp_prog_func(struct xdp_md *ctx) { // A knock should not contain any data if (data_end - data > 60) { - goto done; + return XDP_PASS; } // parse ethernet header @@ -60,7 +60,6 @@ int xdp_prog_func(struct xdp_md *ctx) { } } } -done: // We send everything to XDP_PASS return XDP_PASS; } diff --git a/hypd/server/hyp_bpf_bpfeb.o b/hypd/server/hyp_bpf_bpfeb.o deleted file mode 100644 index 011d50b..0000000 Binary files a/hypd/server/hyp_bpf_bpfeb.o and /dev/null differ diff --git a/hypd/server/hyp_bpf_bpfel.o b/hypd/server/hyp_bpf_bpfel.o deleted file mode 100644 index 7291a14..0000000 Binary files a/hypd/server/hyp_bpf_bpfel.o and /dev/null differ