]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp_metrics: use netlink policy for IPv6 addr len validation
authorJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 21:22:44 +0000 (14:22 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Aug 2024 00:42:57 +0000 (17:42 -0700)
commita2901083b1490a45df0700ac0aaa0730811cbf15
tree1fc99bc4594f3607ce5068361889ebec6986ea96
parent1bf8e07c382bd4f04ede81ecc05267a8ffd60999
tcp_metrics: use netlink policy for IPv6 addr len validation

Use the netlink policy to validate IPv6 address length.
Destination address currently has policy for max len set,
and source has no policy validation. In both cases
the code does the real check. With correct policy
check the code can be removed.

Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240816212245.467745-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_metrics.c