buglwIP - A Lightweight TCP/IP stack - Bugs: bug #55171, Binding UDP PCB with different IP...


You are not allowed to post comments on this tracker with your current authentication level.

bug #55171: Binding UDP PCB with different IP type PCBs does not work

Submitted by:  Dirk Ziegelmeier <dziegel>
Submitted on:  Thu 06 Dec 2018 01:39:55 PM UTC  
Category:  UDP Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Simon Goldschmidt <goldsimon>
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Tue 26 Feb 2019 01:49:35 PM UTC, comment #3: 
Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Tue 26 Feb 2019 01:48:03 PM UTC, comment #2: 

I think this fix might not be correct. Reopening to check it.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 06 Dec 2018 01:45:15 PM UTC, comment #1: 

Fixed in 2ff0db9a9b047d1c94ddbeea010561d1b9032101

Dirk Ziegelmeier <dziegel>
Project Administrator
Thu 06 Dec 2018 01:39:55 PM UTC, original submission:  

reported by Email from Stian Skjelstad:


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) ||
            return ERR_USE;

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

Dirk Ziegelmeier <dziegel>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by dziegel (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-26 goldsimon Assigned todziegel => goldsimon
        Open/ClosedOpen => Closed
    2019-02-26 goldsimon Open/ClosedClosed => Open
    2018-12-06 dziegel StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5