]> 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)
commit8c16aaa8379352e1b2d587ab5a0357ae340c188f
treece408f081a9dacceb782e138ca0cbec379f4e8a4
parent2f7ff25f4841278f22cbbe00dcf0e8ed79c47443
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