add udplite check into configure

This commit is contained in:
vemax78 2013-05-02 18:37:36 +02:00
parent 2d3f0f282e
commit 01123ec594
2 changed files with 18 additions and 9 deletions

View File

@ -192,6 +192,9 @@ if test "${enable_dtls}" = "yes"; then
AC_DEFINE([ENABLE_DTLS], [1], [Enable DTLS])
fi
# UDPLite check
AC_CHECK_HEADERS([netinet/udplite.h])
# Memory check
case "${with_mem_check}" in
internal)

View File

@ -16,15 +16,6 @@
#include <sys/time.h>
#include <net/if.h>
//TODO:
//#ifdef NATIVE_UDPLITE_HEADER
//#include <netinet/udplite.h>
//#else
//#define IPPROTO_UDPLITE 136
#define SOL_UDPLITE 136
#define UDPLITE_SEND_CSCOV 10
//#endif
/* Endian */
#ifdef WIN32
#define CAPWAP_LITTLE_ENDIAN
@ -50,6 +41,21 @@
#include "config.h"
#endif
/* UDPLite */
#ifdef HAVE_NETINET_UDPLITE_H
#include <netinet/udplite.h>
#else
#ifndef IPPROTO_UDPLITE
#define IPPROTO_UDPLITE 136
#endif
#ifndef SOL_UDPLITE
#define SOL_UDPLITE 136
#endif
#ifndef UDPLITE_SEND_CSCOV
#define UDPLITE_SEND_CSCOV 10
#endif
#endif
/* standard include */
#include "capwap_logging.h"
#include "capwap_debug.h"