]> www.infradead.org Git - users/jedix/linux-maple.git/commit
l2tp: Use inet_sk_init_flowi4() in l2tp_ip_sendmsg().
authorGuillaume Nault <gnault@redhat.com>
Mon, 16 Dec 2024 17:21:54 +0000 (18:21 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 21:50:09 +0000 (13:50 -0800)
commitc63e9f3b89d3f96220a1c99466fed4563c14a259
tree9c94088c9d3bd0730d850bc9a62a5c74b626c96a
parent148721f8e04a10a3b9c51f030c9be0d15b0a4d17
l2tp: Use inet_sk_init_flowi4() in l2tp_ip_sendmsg().

Use inet_sk_init_flowi4() to automatically initialise the flowi4
structure in l2tp_ip_sendmsg() instead of passing parameters manually
to ip_route_output_ports().

Override ->daddr with the value passed in the msghdr structure if
provided.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: James Chapman <jchapman@katalix.com>
Link: https://patch.msgid.link/2ff22a3560c5050228928456662b80b9c84a8fe4.1734357769.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/l2tp/l2tp_ip.c