2017-11-01 22:08:43 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2015-07-21 16:43:46 +08:00
|
|
|
#ifndef _UAPI_LWTUNNEL_H_
|
|
|
|
#define _UAPI_LWTUNNEL_H_
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
enum lwtunnel_encap_types {
|
|
|
|
LWTUNNEL_ENCAP_NONE,
|
|
|
|
LWTUNNEL_ENCAP_MPLS,
|
2015-07-21 16:44:00 +08:00
|
|
|
LWTUNNEL_ENCAP_IP,
|
2015-08-18 04:42:27 +08:00
|
|
|
LWTUNNEL_ENCAP_ILA,
|
2015-08-20 19:56:32 +08:00
|
|
|
LWTUNNEL_ENCAP_IP6,
|
2016-11-08 21:57:41 +08:00
|
|
|
LWTUNNEL_ENCAP_SEG6,
|
2016-12-01 00:10:10 +08:00
|
|
|
LWTUNNEL_ENCAP_BPF,
|
2017-08-05 18:38:26 +08:00
|
|
|
LWTUNNEL_ENCAP_SEG6_LOCAL,
|
2015-07-21 16:43:46 +08:00
|
|
|
__LWTUNNEL_ENCAP_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
|
|
|
|
|
2015-08-14 22:40:40 +08:00
|
|
|
enum lwtunnel_ip_t {
|
|
|
|
LWTUNNEL_IP_UNSPEC,
|
|
|
|
LWTUNNEL_IP_ID,
|
|
|
|
LWTUNNEL_IP_DST,
|
|
|
|
LWTUNNEL_IP_SRC,
|
|
|
|
LWTUNNEL_IP_TTL,
|
|
|
|
LWTUNNEL_IP_TOS,
|
|
|
|
LWTUNNEL_IP_FLAGS,
|
2016-04-22 23:31:18 +08:00
|
|
|
LWTUNNEL_IP_PAD,
|
2015-08-14 22:40:40 +08:00
|
|
|
__LWTUNNEL_IP_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
|
2015-07-21 16:43:46 +08:00
|
|
|
|
2015-08-20 19:56:32 +08:00
|
|
|
enum lwtunnel_ip6_t {
|
|
|
|
LWTUNNEL_IP6_UNSPEC,
|
|
|
|
LWTUNNEL_IP6_ID,
|
|
|
|
LWTUNNEL_IP6_DST,
|
|
|
|
LWTUNNEL_IP6_SRC,
|
|
|
|
LWTUNNEL_IP6_HOPLIMIT,
|
|
|
|
LWTUNNEL_IP6_TC,
|
|
|
|
LWTUNNEL_IP6_FLAGS,
|
2016-04-22 23:31:18 +08:00
|
|
|
LWTUNNEL_IP6_PAD,
|
2015-08-20 19:56:32 +08:00
|
|
|
__LWTUNNEL_IP6_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
|
|
|
|
|
2016-12-01 00:10:10 +08:00
|
|
|
enum {
|
|
|
|
LWT_BPF_PROG_UNSPEC,
|
|
|
|
LWT_BPF_PROG_FD,
|
|
|
|
LWT_BPF_PROG_NAME,
|
|
|
|
__LWT_BPF_PROG_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LWT_BPF_PROG_MAX (__LWT_BPF_PROG_MAX - 1)
|
|
|
|
|
|
|
|
enum {
|
|
|
|
LWT_BPF_UNSPEC,
|
|
|
|
LWT_BPF_IN,
|
|
|
|
LWT_BPF_OUT,
|
|
|
|
LWT_BPF_XMIT,
|
|
|
|
LWT_BPF_XMIT_HEADROOM,
|
|
|
|
__LWT_BPF_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LWT_BPF_MAX (__LWT_BPF_MAX - 1)
|
|
|
|
|
|
|
|
#define LWT_BPF_MAX_HEADROOM 256
|
|
|
|
|
2015-07-21 16:43:46 +08:00
|
|
|
#endif /* _UAPI_LWTUNNEL_H_ */
|