From 2ee68ad0459a73a27c3befcb086093fc1588d39f Mon Sep 17 00:00:00 2001 From: ganchuantao1 Date: Wed, 5 Feb 2025 17:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=20=20=20=20=E4=BF=AE=E5=A4=8Dlibbpf=20?= =?UTF-8?q?=E6=BC=8F=E6=B4=9ECVE-2024-27050=EF=BC=8C=E6=8C=91=E5=8D=955.0.?= =?UTF-8?q?2=20=20=20=20=20Signed-off-by:ganchuantao1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao1 --- src/netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netlink.c b/src/netlink.c index 090bcf6..68a2def 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -496,8 +496,8 @@ int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) if (err) return libbpf_err(err); - opts->feature_flags = md.flags; - opts->xdp_zc_max_segs = md.xdp_zc_max_segs; + OPTS_SET(opts, feature_flags, md.flags); + OPTS_SET(opts, xdp_zc_max_segs, md.xdp_zc_max_segs); skip_feature_flags: return 0; -- Gitee