diff options
author | Ido Schimmel <idosch@nvidia.com> | 2020-08-26 19:48:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-27 02:00:51 +0300 |
commit | 863b25581ce9e6f27dd9acc210356ca35ffe30a2 (patch) | |
tree | 39394225bfa63c2d9532d7663e58668526f60f2d /MAINTAINERS | |
parent | 233c63785cd92e12d61b283d0eaeafc867fc45f5 (diff) | |
download | linux-863b25581ce9e6f27dd9acc210356ca35ffe30a2.tar.xz |
ipv4: nexthop: Correctly update nexthop group when removing a nexthop
Each nexthop group contains an indication if it has IPv4 nexthops
('has_v4'). Its purpose is to prevent IPv6 routes from using groups with
IPv4 nexthops.
However, the indication is not updated when a nexthop is removed. This
results in the kernel wrongly rejecting IPv6 routes from pointing to
groups that only contain IPv6 nexthops. Example:
# ip nexthop replace id 1 via 192.0.2.2 dev dummy10
# ip nexthop replace id 2 via 2001:db8:1::2 dev dummy10
# ip nexthop replace id 10 group 1/2
# ip nexthop del id 1
# ip route replace 2001:db8:10::/64 nhid 10
Error: IPv6 routes can not use an IPv4 nexthop.
Solve this by updating the indication according to the new set of
member nexthops.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions