]> git.baikalelectronics.ru Git - kernel.git/commit
pptp: support sockets bound to an interface
authorUlrich Weber <ulrich.weber@gmail.com>
Tue, 14 Jan 2020 14:19:43 +0000 (15:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 22:13:09 +0000 (23:13 +0100)
commita168e7c81303ca5c1a521ad703aef9068144c980
tree8e55f0018c1b6623a5951731fc5d5e5e057f986f
parent335998ca4e586ced8fb51921a7129cf7af492d50
pptp: support sockets bound to an interface

use sk_bound_dev_if for route lookup as already done
in most of the other ip_route_output_ports() calls.

Since most PPPoA providers use 10.0.0.138 as default gateway IP
this will allow connections to multiple PPTP providers with the
same IP address over different interfaces.

Signed-off-by: Ulrich Weber <ulrich.weber@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c