Actions
Bug #5832
closedsource-xdp: build errors/warnings with libbpf 0.8+
Affected Versions:
Effort:
Difficulty:
Label:
Description
Can be seen on Fedora 37 when libbpf-devel
is installed:
source-af-xdp.c: In function ‘AFXDPSocketCreation’: source-af-xdp.c:490:5: error: ‘bpf_get_link_xdp_id’ is deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead [-Werror=deprecated-declarations] 490 | if (bpf_get_link_xdp_id(ptv->ifindex, &ptv->prog_id, ptv->xsk.cfg.xdp_flags)) { | ^~ In file included from /usr/include/xdp/xsk.h:17, from source-af-xdp.c:64: /usr/include/bpf/libbpf.h:1169:16: note: declared here 1169 | LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags); | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
Updated by Victor Julien almost 2 years ago
- Status changed from Assigned to In Review
Updated by Jason Ish over 1 year ago
- Status changed from In Review to In Progress
Fix had issues with older versions of libbpf.
Updated by Victor Julien over 1 year ago
- Target version changed from 7.0.0-rc2 to 7.0.0
Updated by Jason Ish over 1 year ago
- Status changed from In Progress to Closed
Merged via https://github.com/OISF/suricata/pull/8532.
Actions