diff options
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 31417ea..e6c49c5 100644 --- a/src/device.c +++ b/src/device.c @@ -44,6 +44,13 @@ static int open(struct net_device *dev) */ IN_DEV_CONF_SET(dev_v4, SEND_REDIRECTS, false); IPV4_DEVCONF_ALL(dev_net(dev), SEND_REDIRECTS) = false; + + /* TODO: when we merge to mainline, put this check in fib_validate_source in + * net/ipv4/fib_frontend.c, just like what currently happens with secpath_exists. + */ + IN_DEV_CONF_SET(dev_v4, RP_FILTER, 0); + if (IPV4_DEVCONF_ALL(dev_net(dev), RP_FILTER) == 1) + IPV4_DEVCONF_ALL(dev_net(dev), RP_FILTER) = 2; } #ifndef COMPAT_CANNOT_USE_IN6_DEV_GET if (dev_v6) |