Exported udp_pcbs in udp.h (for SNMP agent).

This commit is contained in:
christiaans 2006-08-11 14:09:48 +00:00
parent 469012b544
commit 19f57bf810
2 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@
/* The list of UDP PCBs */ /* The list of UDP PCBs */
#if LWIP_UDP #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; struct udp_pcb *udp_pcbs = NULL;
static struct udp_pcb *pcb_cache = NULL; static struct udp_pcb *pcb_cache = NULL;

View File

@ -68,6 +68,8 @@ struct udp_pcb {
struct ip_addr *addr, u16_t port); struct ip_addr *addr, u16_t port);
void *recv_arg; 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 /* The following functions is the application layer interface to the
UDP code. */ UDP code. */