mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +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:
@ -741,7 +741,7 @@
|
||||
* interface, define this to 0.
|
||||
*/
|
||||
#if !defined IP_FORWARD || defined __DOXYGEN__
|
||||
#define IP_FORWARD 0
|
||||
#define IP_FORWARD LWIP_FEATURES
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -772,6 +772,10 @@
|
||||
#define IP_FRAG 0
|
||||
#endif /* !LWIP_IPV4 */
|
||||
|
||||
#ifndef IP_NAPT
|
||||
#define IP_NAPT (LWIP_FEATURES && !LWIP_IPV6)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* IP_OPTIONS_ALLOWED: Defines the behavior for IP options.
|
||||
* IP_OPTIONS_ALLOWED==0: All packets with IP options are dropped.
|
||||
@ -3496,6 +3500,13 @@
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* NAPT_DEBUG: Enable debugging for NAPT.
|
||||
*/
|
||||
#ifndef NAPT_DEBUG
|
||||
#define NAPT_DEBUG LWIP_DBG_OFF
|
||||
#endif
|
||||
|
||||
/**
|
||||
* LWIP_TESTMODE: Changes to make unit test possible
|
||||
*/
|
||||
|
Reference in New Issue
Block a user