lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Problem with commit 8e23b8d903e8fb98b2f59f258ea0060eafedecd


From: Stian Skjelstad
Subject: [lwip-devel] Problem with commit 8e23b8d903e8fb98b2f59f258ea0060eafedecd9
Date: Thu, 29 Nov 2018 15:18:15 +0100

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]