search for: udp_pcbs

Displaying 2 results from an estimated 2 matches for "udp_pcbs".

Did you mean: udp_pcb
2016 Jul 04
2
[PATCH] core/lwip: Avoid immediate reuse of UDP port numbers
...5" */ +#define UDP_LOCAL_PORT_RANGE_START 0xc000 +#define UDP_LOCAL_PORT_RANGE_END 0xffff +#endif + static u16_t port = UDP_LOCAL_PORT_RANGE_START; + + again: + if (port++ >= UDP_LOCAL_PORT_RANGE_END) { + port = UDP_LOCAL_PORT_RANGE_START; + } + /* Check PCB list. */ + for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { + if (pcb->local_port == port) { + goto again; + } + } + return port; +} + +/** * Bind an UDP PCB. * * @param pcb UDP PCB to be bound with a local address ipaddr and port. @@ -745,31 +776,9 @@ udp_bind(struct udp_pcb *pcb, ip_addr_t *ipaddr,...
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