Stephen Hemminger | e569c5c | 2015-10-16 16:07:03 -0700 | [diff] [blame] | 1 | #ifndef _LWTUNNEL_H_ |
| 2 | #define _LWTUNNEL_H_ |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
| 6 | enum lwtunnel_encap_types { |
| 7 | LWTUNNEL_ENCAP_NONE, |
| 8 | LWTUNNEL_ENCAP_MPLS, |
| 9 | LWTUNNEL_ENCAP_IP, |
| 10 | LWTUNNEL_ENCAP_ILA, |
| 11 | LWTUNNEL_ENCAP_IP6, |
| 12 | __LWTUNNEL_ENCAP_MAX, |
| 13 | }; |
| 14 | |
| 15 | #define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1) |
| 16 | |
| 17 | enum lwtunnel_ip_t { |
| 18 | LWTUNNEL_IP_UNSPEC, |
| 19 | LWTUNNEL_IP_ID, |
| 20 | LWTUNNEL_IP_DST, |
| 21 | LWTUNNEL_IP_SRC, |
| 22 | LWTUNNEL_IP_TTL, |
| 23 | LWTUNNEL_IP_TOS, |
| 24 | LWTUNNEL_IP_FLAGS, |
| 25 | __LWTUNNEL_IP_MAX, |
| 26 | }; |
| 27 | |
| 28 | #define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1) |
| 29 | |
| 30 | enum lwtunnel_ip6_t { |
| 31 | LWTUNNEL_IP6_UNSPEC, |
| 32 | LWTUNNEL_IP6_ID, |
| 33 | LWTUNNEL_IP6_DST, |
| 34 | LWTUNNEL_IP6_SRC, |
| 35 | LWTUNNEL_IP6_HOPLIMIT, |
| 36 | LWTUNNEL_IP6_TC, |
| 37 | LWTUNNEL_IP6_FLAGS, |
| 38 | __LWTUNNEL_IP6_MAX, |
| 39 | }; |
| 40 | |
| 41 | #define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1) |
| 42 | |
| 43 | #endif /* _LWTUNNEL_H_ */ |