]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: allow to change mode for the ip6tnl0
authorAlexey Andriyanov <alan@al-an.info>
Wed, 29 Oct 2014 07:54:52 +0000 (10:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 20:09:20 +0000 (16:09 -0400)
commit9b8c22e418d65903decbbc14e381a74a9ced0370
tree1e6e328a330c5b25ceddd9887be6b073f667204c
parentc7750d30732f787a63954483a85e2ff4801bfbd6
ip6_tunnel: allow to change mode for the ip6tnl0

The fallback device is in ipv6 mode by default.
The mode can not be changed in runtime, so there
is no way to decapsulate ip4in6 packets coming from
various sources without creating the specific tunnel
ifaces for each peer.

This allows to update the fallback tunnel device, but only
the mode could be changed. Usual command should work for the
fallback device: `ip -6 tun change ip6tnl0 mode any`

The fallback device can not be hidden from the packet receiver
as a regular tunnel, but there is no need for synchronization
as long as we do single assignment.

Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexey Andriyanov <alan@al-an.info>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c