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
6enum lwtunnel_encap_types {6enum lwtunnel_encap_types {
7 LWTUNNEL_ENCAP_NONE,7 LWTUNNEL_ENCAP_NONE,
8 LWTUNNEL_ENCAP_MPLS,8 LWTUNNEL_ENCAP_MPLS,
9 LWTUNNEL_ENCAP_IP,
9 __LWTUNNEL_ENCAP_MAX,10 __LWTUNNEL_ENCAP_MAX,
10};11};
11 12
include/uapi/linux/rtnetlink.h+15−0
@@ -286,6 +286,21 @@ enum rt_class_t { · 285 unmodified lines
286 286
287/* Routing message attributes */287/* Routing message attributes */
288 288
289enum 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
289enum rtattr_type_t {304enum rtattr_type_t {
290 RTA_UNSPEC,305 RTA_UNSPEC,
291 RTA_DST,306 RTA_DST,