udp: Stop using RTO_ONLINK.
authorGuillaume Nault <gnault@redhat.com>
Mon, 22 May 2023 14:38:07 +0000 (16:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 May 2023 07:22:06 +0000 (08:22 +0100)
commit0e26371db548834052a8f0c3e138c5ff07e253a0
tree0514973bc9d66e4584cd3741819437141b44c2c2
parentc85be08fc4fa44f07167be0377ebaa8d36b1dd58
udp: Stop using RTO_ONLINK.

Use ip_sendmsg_scope() to properly initialise the scope in
flowi4_init_output(), instead of overriding tos with the RTO_ONLINK
flag. The objective is to eventually remove RTO_ONLINK, which will
allow converting .flowi4_tos to dscp_t.

Now that the scope is determined by ip_sendmsg_scope(), we need to
check its result to set the 'connected' variable.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c