Re: [PATCH net-next 1/9] netlink: Introduce nlmsg_payload helper

From: Kuniyuki Iwashima
Date: Fri Apr 11 2025 - 17:14:12 EST


From: Breno Leitao <leitao@xxxxxxxxxx>
Date: Fri, 11 Apr 2025 10:00:48 -0700
> Create a new helper function, nlmsg_payload(), to simplify checking and
> retrieving Netlink message payloads.
>
> This reduces boilerplate code for users who need to verify the message
> length before accessing its data.
>
> Suggested-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>