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:
@ -189,6 +189,12 @@ extern struct ip_globals ip_data;
|
||||
/** Destination IP4 address of current_header */
|
||||
#define ip4_current_dest_addr() (&ip_data.current_iphdr_dest)
|
||||
|
||||
#if NAPT_DEBUG
|
||||
void napt_debug_print()ICACHE_FLASH_ATTR;
|
||||
#else
|
||||
#define napt_debug_print(p)
|
||||
#endif /* NAPT_DEBUG */
|
||||
|
||||
#elif LWIP_IPV6 /* LWIP_IPV4 && LWIP_IPV6 */
|
||||
|
||||
/** Get the IPv6 header of the current packet.
|
||||
|
Reference in New Issue
Block a user