]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1a1b2bc49fdccd59728d177154eb94c499b1233
tree7e5cf28fa708e770eb94af2223d09d6446d37fc2
parent8266ebbfe5fe81abc89eac6901ad69339ab57310
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