blob: a478fe80e203bdf4865ad9ed5f01343eaacd49ce [file] [log] [blame]
Roopa Prabhu499a2422015-07-21 10:43:46 +02001#ifndef _UAPI_LWTUNNEL_H_
2#define _UAPI_LWTUNNEL_H_
3
4#include <linux/types.h>
5
6enum lwtunnel_encap_types {
7 LWTUNNEL_ENCAP_NONE,
8 LWTUNNEL_ENCAP_MPLS,
Thomas Graf3093fbe2015-07-21 10:44:00 +02009 LWTUNNEL_ENCAP_IP,
Tom Herbert65d7ab82015-08-17 13:42:27 -070010 LWTUNNEL_ENCAP_ILA,
Jiri Benc32a2b002015-08-20 13:56:32 +020011 LWTUNNEL_ENCAP_IP6,
Roopa Prabhu499a2422015-07-21 10:43:46 +020012 __LWTUNNEL_ENCAP_MAX,
13};
14
15#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
16
Jiri Benca1c234f2015-08-14 16:40:40 +020017enum 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,
Jiri Benca1c234f2015-08-14 16:40:40 +020024 LWTUNNEL_IP_FLAGS,
Nicolas Dichtelb46f6de2016-04-22 17:31:18 +020025 LWTUNNEL_IP_PAD,
Jiri Benca1c234f2015-08-14 16:40:40 +020026 __LWTUNNEL_IP_MAX,
27};
28
29#define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
Roopa Prabhu499a2422015-07-21 10:43:46 +020030
Jiri Benc32a2b002015-08-20 13:56:32 +020031enum lwtunnel_ip6_t {
32 LWTUNNEL_IP6_UNSPEC,
33 LWTUNNEL_IP6_ID,
34 LWTUNNEL_IP6_DST,
35 LWTUNNEL_IP6_SRC,
36 LWTUNNEL_IP6_HOPLIMIT,
37 LWTUNNEL_IP6_TC,
Jiri Benc32a2b002015-08-20 13:56:32 +020038 LWTUNNEL_IP6_FLAGS,
Nicolas Dichtelb46f6de2016-04-22 17:31:18 +020039 LWTUNNEL_IP6_PAD,
Jiri Benc32a2b002015-08-20 13:56:32 +020040 __LWTUNNEL_IP6_MAX,
41};
42
43#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
44
Roopa Prabhu499a2422015-07-21 10:43:46 +020045#endif /* _UAPI_LWTUNNEL_H_ */