mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
uip-neighbor.c is the IPv6 neighbour cache. Its only caller is the neighbour solicitation handler in uip_process(), which sits inside #if UIP_CONF_IPV6, so on an IPv4 build the module is linked without being reachable. Guard it on the same macro as its caller. Worth recording separately: the module does not currently compile with UIP_CONF_IPV6 set. uip_ipaddr_cmpx() is defined only in the non-IPv6 half of uip.h, and uip_neighbor_add() calls it, so an IPv6 build stops with an implicit declaration. That is true before this change as well, and is left alone here. On SWTGW218AS, on top of the forwarding change, the stack gains a further 12 bytes to 172 available and BANK1 drops another 714 bytes to 46080.