]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitc2ed1880fd61a998e3ce40254a99a2ad000f1a7d
tree3e1a87a186ce183388ea45659938170d8fafb161
parentc762eaa777b789540e3fe33581d6d0e593dbb22e
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