]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_gre: don't allow to remove the fb_tunnel_dev
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 14 Apr 2014 15:11:38 +0000 (17:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Apr 2014 18:56:19 +0000 (14:56 -0400)
commit8a7db42e0dcfb3af1b83ff1663d72e2f91f8a4cc
tree91c9366f2882b7c178633efab41cecc25013bf12
parentbe79d4f0d2cc789eeb96e96c865050f1298d53f4
ip6_gre: don't allow to remove the fb_tunnel_dev

It's possible to remove the FB tunnel with the command 'ip link del ip6gre0' but
this is unsafe, the module always supposes that this device exists. For example,
ip6gre_tunnel_lookup() may use it unconditionally.

Let's add a rtnl handler for dellink, which will never remove the FB tunnel (we
let ip6gre_destroy_tunnels() do the job).

Introduced by commit 3d8fd70921d8 ("gre: Support GRE over IPv6").

CC: Dmitry Kozlov <xeb@mail.ru>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c