1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

new network feature: NAPT (widely known as NAT) (#6360)

* lwIP: napt patches (enabled with lwip2 w/o IPv6 w/ features)
This commit is contained in:
david gauchard
2019-08-28 17:51:14 +02:00
committed by GitHub
parent 7436f3802a
commit 06f1865628
18 changed files with 497 additions and 8 deletions

View File

@ -764,6 +764,10 @@
#define IP_FRAG 0
#endif /* !LWIP_IPV4 */
#ifndef IP_NAPT
#define IP_NAPT 0
#endif
/**
* IP_OPTIONS_ALLOWED: Defines the behavior for IP options.
* IP_OPTIONS_ALLOWED==0: All packets with IP options are dropped.
@ -3484,6 +3488,14 @@
#if !defined DHCP6_DEBUG || defined __DOXYGEN__
#define DHCP6_DEBUG LWIP_DBG_OFF
#endif
/**
* NAPT_DEBUG: Enable debugging for NAPT.
*/
#ifndef NAPT_DEBUG
#define NAPT_DEBUG LWIP_DBG_OFF
#endif
/**
* @}
*/