ip6_tun: Add infrastructure for doing encapsulation
authorTom Herbert <tom@herbertland.com>
Wed, 18 May 2016 16:06:17 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 22:03:16 +0000 (18:03 -0400)
commit058214a4d1dfefed9f01a277fadd3590acb5f990
tree7e5cf28fa708e770eb94af2223d09d6446d37fc2
parent5f914b681253966612e052df364c3b8e4a3d5f63
ip6_tun: Add infrastructure for doing encapsulation

Add encap_hlen and ip_tunnel_encap structure to ip6_tnl. Add functions
for getting encap hlen, setting up encap on a tunnel, performing
encapsulation operation.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_tunnel.h
net/ipv4/ip_tunnel_core.c
net/ipv6/ip6_tunnel.c