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

Submitted by:  Ivan Delamer <idelamer>
Submitted on:  Thu 02 Feb 2017 12:34:17 AM UTC  
 
Category: IPv6Severity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned 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>
Project Member
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>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Feb 2017 09:25:53 AM UTCdziegelStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1