[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221208143816.936498-1-idosch@nvidia.com>
Date: Thu, 8 Dec 2022 16:38:16 +0200
From: Ido Schimmel <idosch@...dia.com>
To: netdev@...r.kernel.org
Cc: dsahern@...il.com, stephen@...workplumber.org, mlxsw@...dia.com,
Ido Schimmel <idosch@...dia.com>
Subject: [PATCH iproute2-next] 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 <idosch@...dia.com>
---
include/libnetlink.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/libnetlink.h b/include/libnetlink.h
index 4d9696efa253..c91a22314548 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;
--
2.37.3
Powered by blists - more mailing lists