[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Build issue if setting ARP_TABLE_SIZE/LWIP_ND6_NUM_DESTINAT
From: |
Axel Lin |
Subject: |
[lwip-devel] Build issue if setting ARP_TABLE_SIZE/LWIP_ND6_NUM_DESTINATIONS > 0x7f |
Date: |
Thu, 5 Jul 2018 12:03:27 +0800 |
With the changes in commit 0c2fdfcf428f ("Fix bug #53667: ARP table
max size is to small")
It seems allows setting a bigger value for
ARP_TABLE_SIZE/LWIP_ND6_NUM_DESTINATIONS:
However, with below defines:
#define ARP_TABLE_SIZE 0x80
Then got:
../../../../lwip/src/core/ipv4/etharp.c:129:2: error: #error
"ARP_TABLE_SIZE must fit in an s8_t, you have to reduce it in your
lwipopts.h"
#error "ARP_TABLE_SIZE must fit in an s8_t, you have to reduce it in
your lwipopts.h"
^~~~~
#define LWIP_ND6_NUM_DESTINATIONS 0x80
Then got:
../../../../lwip/src/core/ipv6/nd6.c: In function ‘nd6_tmr’:
../../../../lwip/src/core/ipv6/nd6.c:1022:17: error: comparison is
always true due to limited range of data type [-Werror=type-limits]
for (i = 0; i < LWIP_ND6_NUM_DESTINATIONS; i++) {
^
../../../../lwip/src/core/ipv6/nd6.c:1034:23: error: comparison is
always true due to limited range of data type [-Werror=type-limits]
for (j = 0; j < LWIP_ND6_NUM_DESTINATIONS; j++) {
^
cc1: all warnings being treated as errors
- [lwip-devel] Build issue if setting ARP_TABLE_SIZE/LWIP_ND6_NUM_DESTINATIONS > 0x7f,
Axel Lin <=