AC_CHECK_HEADERS(sys/sockio.h glob.h)
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)
+AC_CHECK_HEADERS(netinet/ip6.h)
AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [],
[
#include <netinet/in.h>
#include <netinet/ip.h>
+#ifdef HAVE_NETINET_IP6_H
#include <netinet/ip6.h>
+#endif
typedef struct private_ip_packet_t private_ip_packet_t;
next_header = ip->protocol;
break;
}
+#ifdef HAVE_NETINET_IP6_H
case 6:
{
struct ip6_hdr *ip;
chunk_from_thing(ip->ip6_dst), 0);
next_header = ip->ip6_nxt;
}
+#endif /* HAVE_NETINET_IP6_H */
default:
DBG1(DBG_ESP, "unsupported IP version");
goto failed;