/* * lwipopts.h -- LwIP example * * Copyright (C) 2013-2016 Christian Amsüss * Copyright (C) 2018 John Shallow * * SPDX-License-Identifier: BSD-2-Clause * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ typedef unsigned int sys_prot_t; #define NO_SYS 1 #define LWIP_SOCKET (NO_SYS==0) #define LWIP_NETCONN (NO_SYS==0) #define LWIP_NETIF_API (NO_SYS==0) #define LWIP_IPV6 1 #define LWIP_IPV6_REASS 0 #ifndef LWIP_RAND #define LWIP_RAND() ((u32_t)rand()) #endif #ifndef netif_get_index #define netif_get_index(netif) ((u8_t)((netif)->num + 1)) #endif #if NO_SYS #include extern pthread_mutex_t lwprot_mutex; extern pthread_t lwprot_thread; extern int lwprot_count; #endif #define MEMP_USE_CUSTOM_POOLS 1