From: Ido Schimmel Date: Thu, 8 Dec 2022 14:38:16 +0000 (+0200) Subject: libnetlink: Fix wrong netlink header placement X-Git-Tag: v6.2.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa94a9792155f6692df50f13c3cfea5d21885f1f;p=thirdparty%2Fiproute2.git libnetlink: Fix wrong netlink header placement The netlink header must be first in the netlink message, so move it there. Fixes: fee4a56f0191 ("Update kernel headers") Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko Signed-off-by: David Ahern --- diff --git a/include/libnetlink.h b/include/libnetlink.h index 4d9696efa..c91a22314 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h @@ -38,9 +38,9 @@ struct nlmsg_chain { }; struct ipstats_req { + struct nlmsghdr nlh; struct if_stats_msg ifsm; char buf[128]; - struct nlmsghdr nlh; }; extern int rcvbuf;