diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-08-13 17:51:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-15 10:00:20 +0200 |
commit | 0bd8762824e73a3cce7b7560a97463301764b616 (patch) | |
tree | 1de2d9f01b9947e87705c7d00082fa474e517c5f /include/net/ip6_tunnel.h | |
parent | ipip: add x-netns support (diff) | |
download | linux-0bd8762824e73a3cce7b7560a97463301764b616.tar.xz linux-0bd8762824e73a3cce7b7560a97463301764b616.zip |
ip6tnl: add x-netns support
This patch allows to switch the netns when packet is encapsulated or
decapsulated. In other word, the encapsulated packet is received in a netns,
where the lookup is done to find the tunnel. Once the tunnel is found, the
packet is decapsulated and injecting into the corresponding interface which
stands to another netns.
When one of the two netns is removed, the tunnel is destroyed.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_tunnel.h')
-rw-r--r-- | include/net/ip6_tunnel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip6_tunnel.h b/include/net/ip6_tunnel.h index 4da5de10d1d4..2265b0bf97e5 100644 --- a/include/net/ip6_tunnel.h +++ b/include/net/ip6_tunnel.h @@ -36,6 +36,7 @@ struct __ip6_tnl_parm { struct ip6_tnl { struct ip6_tnl __rcu *next; /* next tunnel in list */ struct net_device *dev; /* virtual device associated with tunnel */ + struct net *net; /* netns for packet i/o */ struct __ip6_tnl_parm parms; /* tunnel configuration parameters */ struct flowi fl; /* flowi template for xmit */ struct dst_entry *dst_cache; /* cached dst */ |