History

ipv6: route: per route IP tunnel metadata via lightweight tunnel

Allow specification of per route IP tunnel instructions also for IPv6. This complements commit 3093fbe7ff4b ("route: Per route IP tunnel metadata via lightweight tunnel").

Jiri Benc committed 11 years ago

Commit 32a2b001 parent 904af042 files · +118 −0Browse files

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

Unified · Split

include/uapi/linux/lwtunnel.h+16−0
@@ -8,6 +8,7 @@ enum lwtunnel_encap_types { · 7 unmodified lines
88 LWTUNNEL_ENCAP_MPLS,
99 LWTUNNEL_ENCAP_IP,
1010 LWTUNNEL_ENCAP_ILA,
11+ LWTUNNEL_ENCAP_IP6,
1112 __LWTUNNEL_ENCAP_MAX,
1213 };
1314
@@ -28,4 +29,19 @@ enum lwtunnel_ip_t { · 14 unmodified lines
2829
2930 #define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
3031
32+enum lwtunnel_ip6_t {
33+ LWTUNNEL_IP6_UNSPEC,
34+ LWTUNNEL_IP6_ID,
35+ LWTUNNEL_IP6_DST,
36+ LWTUNNEL_IP6_SRC,
37+ LWTUNNEL_IP6_HOPLIMIT,
38+ LWTUNNEL_IP6_TC,
39+ LWTUNNEL_IP6_SPORT,
40+ LWTUNNEL_IP6_DPORT,
41+ LWTUNNEL_IP6_FLAGS,
42+ __LWTUNNEL_IP6_MAX,
43+};
44+
45+#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
46+
3147 #endif /* _UAPI_LWTUNNEL_H_ */