summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/seg6_iptunnel.h
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-02-23 14:30:34 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-23 10:55:08 -0500
commitea3ebc73b46fbdb049dafd47543bb22efaa09c8e (patch)
tree2bfb4841d542e984b3e9d130454db509034486c4 /include/uapi/linux/seg6_iptunnel.h
parent50ab3af16c48bc14a6787ab2f506c403d9d1bfad (diff)
downloadblackbird-obmc-linux-ea3ebc73b46fbdb049dafd47543bb22efaa09c8e.tar.gz
blackbird-obmc-linux-ea3ebc73b46fbdb049dafd47543bb22efaa09c8e.zip
uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
Include <linux/in6.h> in uapi/linux/seg6.h to fix the following linux/seg6.h userspace compilation error: /usr/include/linux/seg6.h:31:18: error: array type has incomplete element type 'struct in6_addr' struct in6_addr segments[0]; Include <linux/seg6.h> in uapi/linux/seg6_iptunnel.h to fix the following linux/seg6_iptunnel.h userspace compilation error: /usr/include/linux/seg6_iptunnel.h:26:21: error: array type has incomplete element type 'struct ipv6_sr_hdr' struct ipv6_sr_hdr srh[0]; Fixes: a50a05f497a2 ("ipv6: sr: add missing Kbuild export for header files") Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/seg6_iptunnel.h')
-rw-r--r--include/uapi/linux/seg6_iptunnel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h
index 7a7183d4062a..b6e5a0a1afd7 100644
--- a/include/uapi/linux/seg6_iptunnel.h
+++ b/include/uapi/linux/seg6_iptunnel.h
@@ -14,6 +14,8 @@
#ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H
#define _UAPI_LINUX_SEG6_IPTUNNEL_H
+#include <linux/seg6.h> /* For struct ipv6_sr_hdr. */
+
enum {
SEG6_IPTUNNEL_UNSPEC,
SEG6_IPTUNNEL_SRH,
OpenPOWER on IntegriCloud