]> git.ipfire.org Git - thirdparty/linux.git/commit
ipv6: Use nlmsg_payload in addrlabel file
authorBreno Leitao <leitao@debian.org>
Tue, 15 Apr 2025 19:28:52 +0000 (12:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:33:02 +0000 (18:33 -0700)
commit5ef4097ed155b3eb3aa7ec2c6035c6800b0e849d
treecbe9ea256d86eddbf780d882fbbd945a7b82aeab
parentda59ceed5ab999034d0955a461b7c9573d809daa
ipv6: Use nlmsg_payload in addrlabel file

Leverage the new nlmsg_payload() helper to avoid checking for message
size and then reading the nlmsg data.

This changes function ip6addrlbl_valid_get_req() and
ip6addrlbl_valid_dump_req().

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250415-nlmsg_v2-v1-1-a1c75d493fd7@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/addrlabel.c