ipv4: Use nlmsg_payload in route file
authorBreno Leitao <leitao@debian.org>
Tue, 15 Apr 2025 19:28:57 +0000 (12:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:33:02 +0000 (18:33 -0700)
commitd5ce0ed528c44d4b06d7e543db72c3adb71f4d5f
tree5118eb9d5675b2fa56ee21de030a6b5507a90a2b
parentb411638fb92509a518506cbf0bbce8a8a3bd07fb
ipv4: 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-6-a1c75d493fd7@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/route.c