From: Daniel Salzman Date: Thu, 25 Aug 2022 14:51:31 +0000 (+0200) Subject: libknot: rename XDP SEC macro name to 'xdp' (required by libbpf 1.0) X-Git-Tag: v3.4.dev~373^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=299fe49b9c6ed0cb3bdb7321b283cc41ad5e970a;p=thirdparty%2Fknot-dns.git libknot: rename XDP SEC macro name to 'xdp' (required by libbpf 1.0) --- diff --git a/src/libknot/xdp/bpf-kernel.c b/src/libknot/xdp/bpf-kernel.c index 55077e8292..4c779ba3c5 100644 --- a/src/libknot/xdp/bpf-kernel.c +++ b/src/libknot/xdp/bpf-kernel.c @@ -172,7 +172,7 @@ int process_l4(struct xdp_md *ctx, const struct pkt_desc *desc) return check_route(ctx, desc); } -SEC("xdp_redirect_dns") +SEC("xdp") int xdp_redirect_dns_func(struct xdp_md *ctx) { void *data = (void *)(long)ctx->data;