2017-09-26 15:26:05 +00:00
|
|
|
#ifndef LSQUIC_CONFIG_H
|
|
|
|
#define LSQUIC_CONFIG_H
|
|
|
|
|
2019-09-11 15:27:58 +00:00
|
|
|
#cmakedefine HAVE_SENDMMSG 1
|
|
|
|
#cmakedefine HAVE_RECVMMSG 1
|
|
|
|
#cmakedefine HAVE_OPEN_MEMSTREAM 1
|
2017-09-26 15:26:05 +00:00
|
|
|
#cmakedefine HAVE_IP_DONTFRAG 1
|
|
|
|
#cmakedefine HAVE_IP_MTU_DISCOVER 1
|
2018-05-18 13:18:06 +00:00
|
|
|
#cmakedefine HAVE_REGEX 1
|
2020-09-08 18:16:25 +00:00
|
|
|
#cmakedefine HAVE_PREADV 1
|
2017-09-26 15:26:05 +00:00
|
|
|
|
2022-07-26 15:47:31 +00:00
|
|
|
#define LSQUIC_DONTFRAG_SUPPORTED (HAVE_IP_DONTFRAG || HAVE_IP_MTU_DISCOVER || HAVE_IPV6_MTU_DISCOVER)
|
2017-09-26 15:26:05 +00:00
|
|
|
|
2019-09-11 15:27:58 +00:00
|
|
|
/* TODO: presumably it's the same on FreeBSD, test it.
|
|
|
|
* See https://github.com/quicwg/base-drafts/wiki/ECN-in-QUIC
|
|
|
|
*/
|
|
|
|
#if __linux__ || defined(__FreeBSD__)
|
|
|
|
#define ECN_SUPPORTED 1
|
|
|
|
#else
|
|
|
|
#define ECN_SUPPORTED 0
|
|
|
|
#endif
|
|
|
|
|
2017-09-26 15:26:05 +00:00
|
|
|
#endif
|