diff options
author | Stephen Hemminger <shemming@brocade.com> | 2015-10-16 16:07:03 -0700 |
---|---|---|
committer | Stephen Hemminger <shemming@brocade.com> | 2015-10-16 16:13:05 -0700 |
commit | e569c5c0fd1ecb6547613e5b1e889842b226b4e9 (patch) | |
tree | 25b306fca5f77f42164071689c732751fff159eb | |
parent | c6646c1ea56c3198c19643b2f60e79fec3b07244 (diff) | |
download | android_external_iproute2-e569c5c0fd1ecb6547613e5b1e889842b226b4e9.tar.gz android_external_iproute2-e569c5c0fd1ecb6547613e5b1e889842b226b4e9.tar.bz2 android_external_iproute2-e569c5c0fd1ecb6547613e5b1e889842b226b4e9.zip |
add tunnel header files from net-next uapi
Files needed for new lwtunnel code.
-rw-r--r-- | include/linux/lwtunnel.h | 43 | ||||
-rw-r--r-- | include/linux/mpls_iptunnel.h | 28 |
2 files changed, 71 insertions, 0 deletions
diff --git a/include/linux/lwtunnel.h b/include/linux/lwtunnel.h new file mode 100644 index 0000000..1d2f4f6 --- /dev/null +++ b/include/linux/lwtunnel.h @@ -0,0 +1,43 @@ +#ifndef _LWTUNNEL_H_ +#define _LWTUNNEL_H_ + +#include <linux/types.h> + +enum lwtunnel_encap_types { + LWTUNNEL_ENCAP_NONE, + LWTUNNEL_ENCAP_MPLS, + LWTUNNEL_ENCAP_IP, + LWTUNNEL_ENCAP_ILA, + LWTUNNEL_ENCAP_IP6, + __LWTUNNEL_ENCAP_MAX, +}; + +#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1) + +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, + __LWTUNNEL_IP_MAX, +}; + +#define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1) + +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, + __LWTUNNEL_IP6_MAX, +}; + +#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1) + +#endif /* _LWTUNNEL_H_ */ diff --git a/include/linux/mpls_iptunnel.h b/include/linux/mpls_iptunnel.h new file mode 100644 index 0000000..4132c3c --- /dev/null +++ b/include/linux/mpls_iptunnel.h @@ -0,0 +1,28 @@ +/* + * mpls tunnel api + * + * Authors: + * Roopa Prabhu <roopa@cumulusnetworks.com> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#ifndef _LINUX_MPLS_IPTUNNEL_H +#define _LINUX_MPLS_IPTUNNEL_H + +/* MPLS tunnel attributes + * [RTA_ENCAP] = { + * [MPLS_IPTUNNEL_DST] + * } + */ +enum { + MPLS_IPTUNNEL_UNSPEC, + MPLS_IPTUNNEL_DST, + __MPLS_IPTUNNEL_MAX, +}; +#define MPLS_IPTUNNEL_MAX (__MPLS_IPTUNNEL_MAX - 1) + +#endif /* _LINUX_MPLS_IPTUNNEL_H */ |