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 */
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -2,6 +2,8 @@ · 1 unmodified line | ||
| 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 |