ipv4: Constify the sk parameter of ip_route_output_*().
authorGuillaume Nault <gnault@redhat.com>
Tue, 11 Jul 2023 13:06:14 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 07:27:33 +0000 (08:27 +0100)
commit8d6eba33a2726e463eeab5c42b8eb373d7462127
tree0240f64ac0bf225bb8871252dcb2e3a4c3c59166
parent5b52ad34f9487b2c2d1e60fe37e5bd5656b4dac8
ipv4: Constify the sk parameter of ip_route_output_*().

These functions don't need to modify the socket, so let's allow the
callers to pass a const struct sock *.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h