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.
Showing the changes to include/uapi (2 of 8 files). Show all
Unified · Split
| @@ -6,6 +6,7 @@ · 5 unmodified lines | ||
| 6 | 6 | enum lwtunnel_encap_types { |
| 7 | 7 | LWTUNNEL_ENCAP_NONE, |
| 8 | 8 | LWTUNNEL_ENCAP_MPLS, |
| 9 | + LWTUNNEL_ENCAP_IP, | |
| 9 | 10 | __LWTUNNEL_ENCAP_MAX, |
| 10 | 11 | }; |
| 11 | 12 | |
| @@ -286,6 +286,21 @@ enum rt_class_t { · 285 unmodified lines | ||
| 286 | 286 | |
| 287 | 287 | /* Routing message attributes */ |
| 288 | 288 | |
| 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 | + | |
| 289 | 304 | enum rtattr_type_t { |
| 290 | 305 | RTA_UNSPEC, |
| 291 | 306 | RTA_DST, |