ipv6: Use nlmsg_payload in route file
authorBreno Leitao <leitao@debian.org>
Tue, 15 Apr 2025 19:28:54 +0000 (12:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:33:02 +0000 (18:33 -0700)
commitbc05add844fc47ab61499d64a1128abf2ff77ea2
tree01bb711b1ab416f598b836f4d1e1ecb525dbe7b2
parent6c454270a8511280ba5981e57e3bcb3c1408ebfa
ipv6: Use nlmsg_payload in route file

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

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