projects
/
flowspec-xdp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support a wrapper XDP prog which can call the defined xdp_drop meth
[flowspec-xdp]
/
xdp.c
diff --git
a/xdp.c
b/xdp.c
index fc8f2c3bff94b7d24954ccc34dc3fc598a41b148..b473ace29b3ed0c1ccbefa8ee1461945e059dad2 100644
(file)
--- a/
xdp.c
+++ b/
xdp.c
@@
-186,8
+186,10
@@
struct {
} rate_map SEC(".maps");
#endif
+#ifndef HAVE_WRAPPER // Set this to call xdp_drop externally
SEC("xdp_drop")
#endif
+#endif
int xdp_drop_prog(struct xdp_md *ctx)
{
const void *const data_end = (void *)(size_t)ctx->data_end;