Problem with commit 8e23b8d903e8fb98b2f59f258ea0060eafedecd9

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem with commit 8e23b8d903e8fb98b2f59f258ea0060eafedecd9

Stian Skjelstad
Hi

I just updated my code to the recent master, and this commit breaks my code:

I have two UDP sockets listening at the same port. One a IPv4 only PCB, and when trying to listen with an IPv6 only PCB at the same port, it fails.

from udp.c after this commit:
    for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
...
          if ((ipcb->local_port == port) &&
              (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
              ip_addr_isany(&ipcb->local_ip)))
            return ERR_USE;
....


ip_addr_isany should be IP_IS_ANY_TYPE_VAL instead, so that it only hits dual-stack listeners?


Stian Skjelstad

_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel