#ifndef VBOX_LWIP_OPTS_H_
#define VBOX_LWIP_OPTS_H_
* to be done before redefining any of the functions therein. */
* defined as well, but it's not the case. So include it manually. */
#ifdef RT_OS_OS2
#endif
/** Make lwIP use the libc malloc, or more precisely (see below) the IPRT
* memory allocation functions. */
/** Set proper memory alignment. */
#if HC_ARCH_BITS == 64
#else
#endif
/** Increase number of PBUF buffers. */
/** Increase PBUF buffer size. */
/** Increase maximum TCP window size. */
/** Increase TCP maximum segment size. */
/** Enable queueing of out-of-order segments. */
/** TCP send buffer space. */
/** TCP send buffer space (in pbufs). */
/** Increase maximum pool size for PBUF. */
/** Increase maximum pool size for TCPIP messages. Default of 8 is too low. */
/** Increase maximum number of queued TCP segments. Needed for large sends. */
/** Turn on support for lightweight critical region protection. Leaving this
* off uses synchronization code in pbuf.c which is totally polluted with
* races. All the other lwip source files would fall back to semaphore-based
* synchronization, but pbuf.c is just broken, leading to incorrect allocation
* and as a result to assertions due to buffers being double freed. */
/** Attempt to get rid of htons etc. macro issues. */
#define LWIP_PREFIX_BYTEORDER_FUNCS
/* Debugging stuff. */
#ifdef DEBUG
#define LWIP_DEBUG
#define DBG_MIN_LEVEL 0
#endif /* DEBUG */
/* printf formatter definitions */
/* Redirect libc memory alloc functions to IPRT. */
/* Hack to avoid function name collisions with slirp or any other code. */
#if MEM_LIBC_MALLOC == 0
#endif
#endif