diff options
| author | Tom Herbert <therbert@google.com> | 2014-09-17 15:25:58 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-09-19 17:15:32 -0400 |
| commit | 56328486539ddd07cbaafec7a542a2c8a3043623 (patch) | |
| tree | fbfbf2ae1b1aa35fe2fc537d4f8f3fdcceb1f5c8 /include/uapi/linux | |
| parent | afe93325bc02a5b2dea0cd7d78225de692265e6e (diff) | |
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>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/if_tunnel.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tunnel.h b/include/uapi/linux/if_tunnel.h index 3bce9e9d9f7c..9fedca7d8dae 100644 --- a/include/uapi/linux/if_tunnel.h +++ b/include/uapi/linux/if_tunnel.h | |||
| @@ -53,10 +53,22 @@ enum { | |||
| 53 | IFLA_IPTUN_6RD_RELAY_PREFIX, | 53 | IFLA_IPTUN_6RD_RELAY_PREFIX, |
| 54 | IFLA_IPTUN_6RD_PREFIXLEN, | 54 | IFLA_IPTUN_6RD_PREFIXLEN, |
| 55 | IFLA_IPTUN_6RD_RELAY_PREFIXLEN, | 55 | 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, | ||
| 56 | __IFLA_IPTUN_MAX, | 60 | __IFLA_IPTUN_MAX, |
| 57 | }; | 61 | }; |
| 58 | #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1) | 62 | #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1) |
| 59 | 63 | ||
| 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 | |||
| 60 | /* SIT-mode i_flags */ | 72 | /* SIT-mode i_flags */ |
| 61 | #define SIT_ISATAP 0x0001 | 73 | #define SIT_ISATAP 0x0001 |
| 62 | 74 | ||
