]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: check route protocol when deleting routes
authorMantas M <grawity@gmail.com>
Fri, 16 Dec 2016 08:30:59 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Dec 2016 02:37:06 +0000 (21:37 -0500)
commit3eadd3374c1b6c65759f147dd6f41e65c347c04b
tree3e1a87a186ce183388ea45659938170d8fafb161
parent66deafb935b8ae9a6951ead1a8241105510956a5
net: ipv6: check route protocol when deleting routes

The protocol field is checked when deleting IPv4 routes, but ignored for
IPv6, which causes problems with routing daemons accidentally deleting
externally set routes (observed by multiple bird6 users).

This can be verified using `ip -6 route del <prefix> proto something`.

Signed-off-by: Mantas Mikulėnas <grawity@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c