net: Changes to ip_tunnel to support foo-over-udp encapsulation
authorTom Herbert <therbert@google.com>
Wed, 17 Sep 2014 19:25:58 +0000 (12:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 21:15:32 +0000 (17:15 -0400)
commit56328486539ddd07cbaafec7a542a2c8a3043623
treefbfbf2ae1b1aa35fe2fc537d4f8f3fdcceb1f5c8
parentafe93325bc02a5b2dea0cd7d78225de692265e6e
net: Changes to ip_tunnel to support foo-over-udp encapsulation

This patch changes IP tunnel to support (secondary) encapsulation,
Foo-over-UDP. Changes include:

1) Adding tun_hlen as the tunnel header length, encap_hlen as the
   encapsulation header length, and hlen becomes the grand total
   of these.
2) Added common netlink define to support FOU encapsulation.
3) Routines to perform FOU encapsulation.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
include/uapi/linux/if_tunnel.h
net/ipv4/ip_tunnel.c