History

route: Per route IP tunnel metadata via lightweight tunnel

This introduces a new IP tunnel lightweight tunnel type which allows to specify IP tunnel instructions per route. Only IPv4 is supported at this point.

Thomas Graf committed 11 years ago

Commit 3093fbe1 parent 1b7179d8 files · +157 −5Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/lwtunnel.h +1 −0
  2. include/uapi/linux/rtnetlink.h +15 −0
include/uapi/linux/lwtunnel.h+1−0
@@ -6,6 +6,7 @@ · 5 unmodified lines
66 enum lwtunnel_encap_types {
77 LWTUNNEL_ENCAP_NONE,
88 LWTUNNEL_ENCAP_MPLS,
9+ LWTUNNEL_ENCAP_IP,
910 __LWTUNNEL_ENCAP_MAX,
1011 };
1112
include/uapi/linux/rtnetlink.h+15−0
@@ -286,6 +286,21 @@ enum rt_class_t { · 285 unmodified lines
286286
287287 /* Routing message attributes */
288288
289+enum ip_tunnel_t {
290+ IP_TUN_UNSPEC,
291+ IP_TUN_ID,
292+ IP_TUN_DST,
293+ IP_TUN_SRC,
294+ IP_TUN_TTL,
295+ IP_TUN_TOS,
296+ IP_TUN_SPORT,
297+ IP_TUN_DPORT,
298+ IP_TUN_FLAGS,
299+ __IP_TUN_MAX,
300+};
301+
302+#define IP_TUN_MAX (__IP_TUN_MAX - 1)
303+
289304 enum rtattr_type_t {
290305 RTA_UNSPEC,
291306 RTA_DST,