martin-ger / esp-open-lwip

ESP8266 lwIP library with NAT, SLIP, ENC28j60 Ethernet, and routing support
67 stars 25 forks source link

ipv4: napt: use new LWIP_TIME_DIFF macro when comparing time. #28

Closed 0hax closed 4 years ago

0hax commented 4 years ago

NOW() macro reads RTC2 value to get the time, this value can wrap up, so handle this with LWIP_TIME_DIFF. Otherwise connection get lost every ~4 hours.