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

Submitter:  Dirk Ziegelmeier <dziegel>
Submitted:  Thu 06 Dec 2018 01:39:55 PM UTC
   
 
Category:  UDP Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  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>
Group administrator
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>
Group administrator
Thu 06 Dec 2018 01:45:15 PM UTC, comment #1: 

Fixed in 2ff0db9a9b047d1c94ddbeea010561d1b9032101

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

reported by Email from 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?

Dirk Ziegelmeier <dziegel>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-f8d8.
    Corresponding source code