ipv4: Set the routing scope properly in ip_route_output_ports().
[linux-block.git] / net / l2tp / l2tp_ip.c
index 9a2a9ed3ba478b9d00885b1a00e87f0edde5cb33..970af3983d11672325f7e5ee3be3448a4f200808 100644 (file)
@@ -478,7 +478,7 @@ static int l2tp_ip_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
                rt = ip_route_output_ports(sock_net(sk), fl4, sk,
                                           daddr, inet->inet_saddr,
                                           inet->inet_dport, inet->inet_sport,
-                                          sk->sk_protocol, RT_CONN_FLAGS(sk),
+                                          sk->sk_protocol, ip_sock_rt_tos(sk),
                                           sk->sk_bound_dev_if);
                if (IS_ERR(rt))
                        goto no_route;