]> git.baikalelectronics.ru Git - kernel.git/commit
sit: add support of x-netns
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 26 Jun 2013 14:11:28 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2013 05:30:47 +0000 (22:30 -0700)
commit655ba5ea25634a19f681630d96a1600e54a236d1
treece408f081a9dacceb782e138ca0cbec379f4e8a4
parent5ed47bcc5e2bb464fff72ae3bf37a72335a48889
sit: add support of x-netns

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>
include/net/ip_tunnels.h
net/ipv4/ip_tunnel.c
net/ipv6/sit.c