diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-07-28 03:39:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-28 03:39:45 +0200 |
commit | 27fed4175acf81ddd91d9a4ee2fd298981f60295 (patch) | |
tree | beefc6904a557d009da6f9b121693ad28ead7bfe | |
parent | cnic: Fix ISCSI_KEVENT_IF_DOWN message handling. (diff) | |
download | linux-27fed4175acf81ddd91d9a4ee2fd298981f60295.tar.xz linux-27fed4175acf81ddd91d9a4ee2fd298981f60295.zip |
ip: fix logic of reverse path filter sysctl
Even though reverse path filter was changed from simple boolean to
trinary control, the loose mode only works if both all and device are
configured because of this logic error.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/inetdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index acef2a770b6b..ad27c7da8798 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -82,7 +82,7 @@ static inline void ipv4_devconf_setall(struct in_device *in_dev) #define IN_DEV_FORWARD(in_dev) IN_DEV_CONF_GET((in_dev), FORWARDING) #define IN_DEV_MFORWARD(in_dev) IN_DEV_ANDCONF((in_dev), MC_FORWARDING) -#define IN_DEV_RPFILTER(in_dev) IN_DEV_ANDCONF((in_dev), RP_FILTER) +#define IN_DEV_RPFILTER(in_dev) IN_DEV_MAXCONF((in_dev), RP_FILTER) #define IN_DEV_SOURCE_ROUTE(in_dev) IN_DEV_ANDCONF((in_dev), \ ACCEPT_SOURCE_ROUTE) #define IN_DEV_BOOTP_RELAY(in_dev) IN_DEV_ANDCONF((in_dev), BOOTP_RELAY) |