]> 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)
commit1e560e06bc8f196b9b3d0af56fe8aafbd2e15399
tree3e1a87a186ce183388ea45659938170d8fafb161
parente259ef870af3c2c5168f0a8b5000148c1050d1b5
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