mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
IPv6 on esp8266-nonos-sdk and arduino (#5136)
This commit is contained in:
12
libraries/ESP8266NetBIOS/ESP8266NetBIOS.cpp
Executable file → Normal file
12
libraries/ESP8266NetBIOS/ESP8266NetBIOS.cpp
Executable file → Normal file
@ -174,11 +174,7 @@ void ESP8266NetBIOS::end()
|
||||
}
|
||||
}
|
||||
|
||||
#if LWIP_VERSION_MAJOR == 1
|
||||
void ESP8266NetBIOS::_recv(udp_pcb *upcb, pbuf *pb, ip_addr_t *addr, uint16_t port)
|
||||
#else
|
||||
void ESP8266NetBIOS::_recv(udp_pcb *upcb, pbuf *pb, const ip_addr_t *addr, uint16_t port)
|
||||
#endif
|
||||
void ESP8266NetBIOS::_recv(udp_pcb *upcb, pbuf *pb, CONST ip_addr_t *addr, uint16_t port)
|
||||
{
|
||||
(void)upcb;
|
||||
(void)addr;
|
||||
@ -269,11 +265,7 @@ void ESP8266NetBIOS::_recv(udp_pcb *upcb, pbuf *pb, const ip_addr_t *addr, uint1
|
||||
}
|
||||
}
|
||||
|
||||
#if LWIP_VERSION_MAJOR == 1
|
||||
void ESP8266NetBIOS::_s_recv(void *arg, udp_pcb *upcb, pbuf *p, struct ip_addr *addr, uint16_t port)
|
||||
#else
|
||||
void ESP8266NetBIOS::_s_recv(void *arg, udp_pcb *upcb, pbuf *p, const ip_addr_t *addr, uint16_t port)
|
||||
#endif
|
||||
void ESP8266NetBIOS::_s_recv(void *arg, udp_pcb *upcb, pbuf *p, CONST ip_addr_t *addr, uint16_t port)
|
||||
{
|
||||
reinterpret_cast<ESP8266NetBIOS*>(arg)->_recv(upcb, p, addr, port);
|
||||
}
|
||||
|
10
libraries/ESP8266NetBIOS/ESP8266NetBIOS.h
Executable file → Normal file
10
libraries/ESP8266NetBIOS/ESP8266NetBIOS.h
Executable file → Normal file
@ -28,13 +28,9 @@ protected:
|
||||
void _getnbname(char *nbname, char *name, uint8_t maxlen);
|
||||
void _makenbname(char *name, char *nbname, uint8_t outlen);
|
||||
|
||||
#if LWIP_VERSION_MAJOR == 1
|
||||
void _recv(udp_pcb *upcb, pbuf *pb, struct ip_addr *addr, uint16_t port);
|
||||
static void _s_recv(void *arg, udp_pcb *upcb, pbuf *p, struct ip_addr *addr, uint16_t port);
|
||||
#else
|
||||
void _recv(udp_pcb *upcb, pbuf *pb, const ip_addr_t *addr, uint16_t port);
|
||||
static void _s_recv(void *arg, udp_pcb *upcb, pbuf *p, const ip_addr_t *addr, uint16_t port);
|
||||
#endif
|
||||
void _recv(udp_pcb *upcb, pbuf *pb, CONST ip_addr_t *addr, uint16_t port);
|
||||
static void _s_recv(void *arg, udp_pcb *upcb, pbuf *p, CONST ip_addr_t *addr, uint16_t port);
|
||||
|
||||
public:
|
||||
ESP8266NetBIOS();
|
||||
~ESP8266NetBIOS();
|
||||
|
Reference in New Issue
Block a user