mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-17 10:11:14 +00:00
Exported udp_pcbs in udp.h (for SNMP agent).
This commit is contained in:
parent
469012b544
commit
19f57bf810
@ -61,7 +61,7 @@
|
||||
|
||||
/* The list of UDP PCBs */
|
||||
#if LWIP_UDP
|
||||
/* was static, but we may want to access this from a socket layer */
|
||||
/* exported in udp.h (was static) */
|
||||
struct udp_pcb *udp_pcbs = NULL;
|
||||
|
||||
static struct udp_pcb *pcb_cache = NULL;
|
||||
|
@ -68,6 +68,8 @@ struct udp_pcb {
|
||||
struct ip_addr *addr, u16_t port);
|
||||
void *recv_arg;
|
||||
};
|
||||
/* udp_pcbs export for exernal reference (e.g. SNMP agent) */
|
||||
extern struct udp_pcb *udp_pcbs;
|
||||
|
||||
/* The following functions is the application layer interface to the
|
||||
UDP code. */
|
||||
|
Loading…
Reference in New Issue
Block a user