mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
Last sanity checking centralization for "task #7142 : Sanity check user-configurable values".
This commit is contained in:
parent
3dfe5f993b
commit
027a70a415
@ -75,6 +75,9 @@
|
|||||||
#if (!LWIP_UDP && LWIP_IGMP)
|
#if (!LWIP_UDP && LWIP_IGMP)
|
||||||
#error "If you want to use IGMP, you have to define LWIP_UDP=1 in your lwipopts.h"
|
#error "If you want to use IGMP, you have to define LWIP_UDP=1 in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
|
#if (LWIP_ARP && (ARP_TABLE_SIZE > 0x7f))
|
||||||
|
#error "If you want to use ARP, ARP_TABLE_SIZE must fit in an s8_t, so, you have to reduce it in your lwipopts.h"
|
||||||
|
#endif
|
||||||
#if (LWIP_ARP && ARP_QUEUEING && (MEMP_NUM_ARP_QUEUE<=0))
|
#if (LWIP_ARP && ARP_QUEUEING && (MEMP_NUM_ARP_QUEUE<=0))
|
||||||
#error "If you want to use ARP Queueing, you have to define MEMP_NUM_ARP_QUEUE>=1 in your lwipopts.h"
|
#error "If you want to use ARP Queueing, you have to define MEMP_NUM_ARP_QUEUE>=1 in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
@ -87,6 +90,9 @@
|
|||||||
#if (LWIP_TCP && (MEMP_NUM_TCP_PCB<=0))
|
#if (LWIP_TCP && (MEMP_NUM_TCP_PCB<=0))
|
||||||
#error "If you want to use TCP, you have to define MEMP_NUM_TCP_PCB>=1 in your lwipopts.h"
|
#error "If you want to use TCP, you have to define MEMP_NUM_TCP_PCB>=1 in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
|
#if (LWIP_TCP && (TCP_WND > 0xffff))
|
||||||
|
#error "If you want to use TCP, TCP_WND must fit in an u16_t, so, you have to reduce it in your lwipopts.h"
|
||||||
|
#endif
|
||||||
#if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1))
|
#if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1))
|
||||||
#error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h"
|
#error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -587,12 +587,6 @@ extern struct tcp_pcb *tcp_tmp_pcb; /* Only used for temporary storage. */
|
|||||||
} while(0)
|
} while(0)
|
||||||
#endif /* LWIP_DEBUG */
|
#endif /* LWIP_DEBUG */
|
||||||
|
|
||||||
/* finally, check some defines */
|
|
||||||
#if TCP_WND > 0xffff
|
|
||||||
#error TCP_WND must fit in an u16_t
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -159,11 +159,6 @@ err_t etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
|
|||||||
|
|
||||||
#define eth_addr_cmp(addr1, addr2) (memcmp((addr1)->addr, (addr2)->addr, ETHARP_HWADDR_LEN) == 0)
|
#define eth_addr_cmp(addr1, addr2) (memcmp((addr1)->addr, (addr2)->addr, ETHARP_HWADDR_LEN) == 0)
|
||||||
|
|
||||||
/* finally, check some defines */
|
|
||||||
#if ARP_TABLE_SIZE > 0x7f
|
|
||||||
#error ARP_TABLE_SIZE must fit in an s8_t
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern const struct eth_addr ethbroadcast, ethzero;
|
extern const struct eth_addr ethbroadcast, ethzero;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user