]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
libnetlink: Fix wrong netlink header placement
authorIdo Schimmel <idosch@nvidia.com>
Thu, 8 Dec 2022 14:38:16 +0000 (16:38 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 8 Dec 2022 16:20:27 +0000 (09:20 -0700)
The netlink header must be first in the netlink message, so move it
there.

Fixes: fee4a56f0191 ("Update kernel headers")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/libnetlink.h

index 4d9696efa25397d13fcb6048467a6145c9c4b374..c91a22314548bd6d96981261df56ba7ae3274ea9 100644 (file)
@@ -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;