diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2022-10-20 12:09:50 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-10-27 19:17:32 +0200 |
commit | 745b913a59947919454658dd44cddf5ee8d8f899 (patch) | |
tree | fe8c2cead2863d45390e719f7a4b60a4c8eae297 /net/ipv4/fib_frontend.c | |
parent | genetlink: limit the use of validation workarounds to old ops (diff) | |
download | linux-745b913a59947919454658dd44cddf5ee8d8f899.tar.xz linux-745b913a59947919454658dd44cddf5ee8d8f899.zip |
Revert "ip: fix triggering of 'icmp redirect'"
This reverts commit eb55dc09b5dd040232d5de32812cc83001a23da6.
The patch that introduces this bug is reverted right after this one.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 943edf4ad4db..f361d3d56be2 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -389,7 +389,7 @@ static int __fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst, dev_match = dev_match || (res.type == RTN_LOCAL && dev == net->loopback_dev); if (dev_match) { - ret = FIB_RES_NHC(res)->nhc_scope >= RT_SCOPE_LINK; + ret = FIB_RES_NHC(res)->nhc_scope >= RT_SCOPE_HOST; return ret; } if (no_addr) @@ -401,7 +401,7 @@ static int __fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst, ret = 0; if (fib_lookup(net, &fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE) == 0) { if (res.type == RTN_UNICAST) - ret = FIB_RES_NHC(res)->nhc_scope >= RT_SCOPE_LINK; + ret = FIB_RES_NHC(res)->nhc_scope >= RT_SCOPE_HOST; } return ret; |