libnetlink: Fix wrong netlink header placement

The netlink header must be first in the netlink message, so move it
there.

Fixes: fee4a56f01 ("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>
This commit is contained in:
Ido Schimmel 2022-12-08 16:38:16 +02:00 committed by David Ahern
parent 2e2b534671
commit fa94a97921

View 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;