Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uapi: fix linux/ip6_tunnel.h userspace compilation errors

Include <linux/if.h> and <linux/in6.h> to fix the following
linux/ip6_tunnel.h userspace compilation errors:

/usr/include/linux/ip6_tunnel.h:23:12: error: 'IFNAMSIZ' undeclared here (not in a function)
char name[IFNAMSIZ]; /* name of tunnel device */
/usr/include/linux/ip6_tunnel.h:30:18: error: field 'laddr' has incomplete type
struct in6_addr laddr; /* local tunnel end-point address */

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dmitry V. Levin and committed by
David S. Miller
557d7acd 79873fb6

+2
+2
include/uapi/linux/ip6_tunnel.h
··· 2 2 #define _IP6_TUNNEL_H 3 3 4 4 #include <linux/types.h> 5 + #include <linux/if.h> /* For IFNAMSIZ. */ 6 + #include <linux/in6.h> /* For struct in6_addr. */ 5 7 6 8 #define IPV6_TLV_TNL_ENCAP_LIMIT 4 7 9 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4