Jiri Pirko f76936d07c ipv4: fix nexthop attlen check in fib_nh_match
fib_nh_match does not match nexthops correctly. Example:

ip route add 172.16.10/24 nexthop via 192.168.122.12 dev eth0 \
                          nexthop via 192.168.122.13 dev eth0
ip route del 172.16.10/24 nexthop via 192.168.122.14 dev eth0 \
                          nexthop via 192.168.122.15 dev eth0

Del command is successful and route is removed. After this patch
applied, the route is correctly matched and result is:
RTNETLINK answers: No such process

Please consider this for stable trees as well.

Fixes: 4e902c57417c4 ("[IPv4]: FIB configuration using struct fib_config")
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-14 15:59:37 -04:00
..
2014-08-22 12:23:11 -07:00
2014-10-04 20:44:44 -04:00
2014-09-30 17:08:06 -04:00
2014-09-10 12:40:10 -07:00
2013-09-23 16:52:45 -04:00
2014-09-28 07:05:16 -07:00
2014-10-09 01:40:05 -04:00
2014-09-07 16:07:25 -07:00
2014-10-07 20:28:44 -04:00