X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=xdp.c;fp=xdp.c;h=b473ace29b3ed0c1ccbefa8ee1461945e059dad2;hb=31c91503a07f942531da55ac861630bfdf8d00fb;hp=fc8f2c3bff94b7d24954ccc34dc3fc598a41b148;hpb=0a516f6c712109cbaad8324964c94197dd8c85e5;p=flowspec-xdp diff --git a/xdp.c b/xdp.c index fc8f2c3..b473ace 100644 --- 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;