netlink: simplify NLMSG_DATA with NLMSG_HDRLEN
Quoted 5 lines · On Thu, 27 May 2021 15:21:36 +0800 Chen Li wrote:
The
NLMSG_LENGTH(0)may confuse the API users,NLMSG_HDRLENis much more clear.Besides, some code style problems are also fixed.
Signed-off-by Chen Li <[email protected]>
Looks fine, but you'll need to repost and CC netdev@vger.
Quoted 11 lines · Jakub Kicinski
Quoted 5 lines · On Thu, 27 May 2021 15:21:36 +0800 Chen Li wrote:
The
NLMSG_LENGTH(0)may confuse the API users,NLMSG_HDRLENis much more clear.Besides, some code style problems are also fixed.
Signed-off-by Chen Li <[email protected]>Looks fine, but you'll need to repost and CC netdev@vger.
Thanks, done.