Displaying 2 results from an estimated 2 matches for "udp_pcb".
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_pc...
2016 Mar 07
2
"Tick-counting" vs "Tick-less" timekeeping issues on VMs emulating BIOS PCs
>>>
...
Bottom line; There are timing issues with TFTP transfers
on VM machines emulating BIOS hardware.
Probably the interrupt based timer is not the culprit;
now I'm working on /core/fs/pxe/core.c trying to see if
there's something wrong there.
Best,
Patrick
<<<
I've been working on this issue, I have tested the timers,
and as you guys mentioned before they