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:
@ -58,10 +58,12 @@ void sntp_set_system_time (uint32_t t);
|
||||
|
||||
#include "mem.h" // useful for os_malloc used in esp-arduino's mDNS
|
||||
|
||||
typedef uint32_t sys_prot_t; // not really used
|
||||
#define SYS_ARCH_DECL_PROTECT(lev)
|
||||
#define SYS_ARCH_PROTECT(lev) os_intr_lock()
|
||||
#define SYS_ARCH_UNPROTECT(lev) os_intr_unlock()
|
||||
#include "glue.h" // include assembly locking macro used below
|
||||
typedef uint32_t sys_prot_t;
|
||||
#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev
|
||||
#define SYS_ARCH_PROTECT(lev) lev = lwip_xt_rsil(15)
|
||||
#define SYS_ARCH_UNPROTECT(lev) lwip_xt_wsr_ps(lev)
|
||||
|
||||
#define LWIP_NO_CTYPE_H 1
|
||||
|
||||
///////////////////////////////
|
||||
|
Reference in New Issue
Block a user