#define UDP_FLAGS_CONNECTED 0x04U
struct udp_pcb {
+/* Common members of all PCB types */
+ IP_PCB;
+
+/* Protocol specific PCB members */
+
struct udp_pcb *next;
- struct ip_addr local_ip, remote_ip;
+ u8_t flags;
u16_t local_port, remote_port;
- u8_t flags;
u16_t chksum_len;
void (* recv)(void *arg, struct udp_pcb *pcb, struct pbuf *p,
void udp_input (struct pbuf *p, struct netif *inp);
void udp_init (void);
-
+#if UDP_DEBUG
+int udp_debug_print(struct udp_hdr *udphdr);
+#else
+#define udp_debug_print(udphdr)
+#endif
#endif /* __LWIP_UDP_H__ */