/* * coap_config.h.lwip -- LwIP configuration for libcoap * * Copyright (C) 2021-2023 Olaf Bergmann and others * * SPDX-License-Identifier: BSD-2-Clause * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ #ifndef COAP_CONFIG_H_ #define COAP_CONFIG_H_ #include #include #include /* provide ntohs, htons */ #define WITH_LWIP 1 #if LWIP_IPV4 #define COAP_IPV4_SUPPORT 1 #endif /* LWIP_IPV4 */ #if LWIP_IPV6 #define COAP_IPV6_SUPPORT 1 #endif /* LWIP_IPV6 */ #ifndef COAP_CONSTRAINED_STACK /* Define to 1 to minimize stack usage. */ #define COAP_CONSTRAINED_STACK 1 #endif #ifndef COAP_DISABLE_TCP /* Define to 1 to build without TCP support. */ #define COAP_DISABLE_TCP 1 #endif #ifndef COAP_ASYNC_SUPPORT /* Define to 1 to build with support for async separate responses. */ #define COAP_ASYNC_SUPPORT 1 #endif #ifndef COAP_WITH_OBSERVE_PERSIST /* Define to 1 to build support for persisting observes. */ #define COAP_WITH_OBSERVE_PERSIST 0 #endif #ifndef COAP_WS_SUPPORT /* Define to 1 to build with WebSockets support. */ #define COAP_WS_SUPPORT 0 #endif #ifndef COAP_Q_BLOCK_SUPPORT /* Define to 1 to build with Q-Block (RFC9177) support. */ #define COAP_Q_BLOCK_SUPPORT 0 #endif #define PACKAGE_NAME "@PACKAGE_NAME@" #define PACKAGE_VERSION "@PACKAGE_VERSION@" #define PACKAGE_STRING "@PACKAGE_STRING@" #define assert(x) LWIP_ASSERT("CoAP assert failed", x) /* it's just provided by libc. i hope we don't get too many of those, as * actually we'd need autotools again to find out what environment we're * building in */ #define HAVE_STRNLEN 1 #define HAVE_LIMITS_H #define HAVE_NETDB_H #define HAVE_SNPRINTF #define HAVE_ERRNO_H #endif /* COAP_CONFIG_H_ */