History

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.

Tom Herbert committed 12 years ago

Commit 56328481 parent afe93323 files · +120 −2Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/if_tunnel.h+12−0
@@ -53,10 +53,22 @@ enum { · 52 unmodified lines
5353 IFLA_IPTUN_6RD_RELAY_PREFIX,
5454 IFLA_IPTUN_6RD_PREFIXLEN,
5555 IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
56+ IFLA_IPTUN_ENCAP_TYPE,
57+ IFLA_IPTUN_ENCAP_FLAGS,
58+ IFLA_IPTUN_ENCAP_SPORT,
59+ IFLA_IPTUN_ENCAP_DPORT,
5660 __IFLA_IPTUN_MAX,
5761 };
5862 #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1)
5963
64+enum tunnel_encap_types {
65+ TUNNEL_ENCAP_NONE,
66+ TUNNEL_ENCAP_FOU,
67+};
68+
69+#define TUNNEL_ENCAP_FLAG_CSUM (1<<0)
70+#define TUNNEL_ENCAP_FLAG_CSUM6 (1<<1)
71+
6072 /* SIT-mode i_flags */
6173 #define SIT_ISATAP 0x0001
6274