Am 03.08.2019 um 00:48 schrieb mav:
> Could anybody please recomend good and proven lwIP NAT solution? I've found
> this one https://github.com/ajaybhargav/lwip_nat but it is randomly
> crashing for me. Any suggestions?
Less than a month ago, Andrea Berlingieri said "lwipv6" included NAT and
pointed me to the sources here:
err_t ip_napt_init (nat-table-size, npt-table-size)
(allocations only happen in this function)
enabling on an interface:
err_t ip_napt_enable_no (if-num, 1/*enable*/)
Check napt.h for the full API.
lwIP's license has just been added on behalf of original author just before I
wrote this email.
About stability on specific 2.1.2 version of lwIP, I can only say my android
8 phone happily accesses to internet through a $2 two-wifi-interfaces chip
with lwIP-2.1.2 and the two above calls from this patch.
Thanks for your support! I've traced down the issue and seems that there was
a memory error with my setup. The main issue was that I've used
pppos_input_tcpip to push data to lwip per-byte. This seemed to drain the
dynamic memory too quickly. Now I changed it to pppos_input and it works
good so far! Just in case I attach lwippopts.h file for anybody facing the