• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * coap_config.h.lwip -- LwIP configuration for libcoap
3 *
4 * Copyright (C) 2021 Olaf Bergmann <bergmann@tzi.org> and others
5 *
6 * SPDX-License-Identifier: BSD-2-Clause
7 *
8 * This file is part of the CoAP library libcoap. Please see README for terms
9 * of use.
10 */
11
12#ifndef COAP_CONFIG_H_
13#define COAP_CONFIG_H_
14
15#include <lwip/opt.h>
16#include <lwip/debug.h>
17#include <lwip/def.h> /* provide ntohs, htons */
18
19#define WITH_LWIP 1
20
21#ifndef COAP_CONSTRAINED_STACK
22#define COAP_CONSTRAINED_STACK 1
23#endif
24
25#ifndef COAP_DISABLE_TCP
26#define COAP_DISABLE_TCP 1
27#endif
28
29#define PACKAGE_NAME "@PACKAGE_NAME@"
30#define PACKAGE_VERSION "@PACKAGE_VERSION@"
31#define PACKAGE_STRING "@PACKAGE_STRING@"
32
33#define assert(x) LWIP_ASSERT("CoAP assert failed", x)
34
35/* it's just provided by libc. i hope we don't get too many of those, as
36 * actually we'd need autotools again to find out what environment we're
37 * building in */
38#define HAVE_STRNLEN 1
39
40#define HAVE_LIMITS_H
41
42#endif /* COAP_CONFIG_H_ */
43