buglwIP - A Lightweight TCP/IP stack - Bugs: bug #50206, UDP Netconn bind to IP6_ADDR_ANY...

 
 

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

bug #50206: UDP Netconn bind to IP6_ADDR_ANY fails

Submitter:  Ivan Delamer <idelamer>
Submitted:  Thu 02 Feb 2017 12:34:17 AM UTC
   
 
Category:  IPv6 Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.0.0

Thu 02 Feb 2017 09:25:53 AM UTC, comment #1: 

Removed the sanity checks. They don't seem to be that useful...

Dirk Ziegelmeier <dziegel>
Group administrator
Thu 02 Feb 2017 12:34:17 AM UTC, original submission:  

I have a UDP netconn, it starts of bound to ANY address in IPv4 and IPv6 (type=0x46)

I bind the netconn to a certain address on a netif (to force a certain source address).

Then, when I try to bind it to IP6_ADDR_ANY again, the operation fails.

I see in api_lib that IP6_ADDR_ANY is substituted for IP_ADDR_ANY.

Later, in udp_bind, because the current address is a IPv6 address, then there is a type mismatch and an error is returned.

I will temporarily solve this in my application using the NETCONN_FLAG_IPV6_V6ONLY  but I think this needs to be fixed for dual-v4/v6 support.

I haven't have time to check if this happens in TCP netconns, but it might be a good idea.

Cheers

Ivan Delamer <idelamer>
Group Member

 

(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 dziegel (Posted a comment)
  • -email is unavailable- added by idelamer (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-02 dziegel StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code