search for: ip_addr_t

Displaying 1 result from an estimated 1 matches for "ip_addr_t".

Did you mean: in_addr_t
2016 Jul 04
2
[PATCH] core/lwip: Avoid immediate reuse of UDP port numbers
...----------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/core/lwip/src/core/udp.c b/core/lwip/src/core/udp.c index 4596ba2..68e7f48 100644 --- a/core/lwip/src/core/udp.c +++ b/core/lwip/src/core/udp.c @@ -679,6 +679,37 @@ udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *dst_ip, } /** + * A nastly hack featuring 'goto' statements that allocates a + * new UDP local port. Based on equivalent code in tcp_new_port() + * + * @return a new (free) local UDP port number + */ +static u16_t +udp_new_port(void) +{ + struct udp_pcb *pcb; +#ifndef UDP_LOCAL_PORT_...