buglwIP - A Lightweight TCP/IP stack - Bugs: bug #33956, Wrong error returned when calling...

 
 

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

bug #33956: Wrong error returned when calling accept() on UDP connections

Submitted by:  Kieran Mansley <kieranm>
Submitted on:  Fri 05 Aug 2011 02:50:19 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Wed 24 Aug 2011 07:16:05 PM UTC, comment #3:

Fixed by letting the netconn API return ERR_ARG and adding extra checks to the socket API to return EOPNOTSUPP.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Wed 24 Aug 2011 07:13:23 PM UTC, comment #2:

Updated summary to reflect the actual bug

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 05 Aug 2011 02:59:59 PM UTC, comment #1:

My first comment is bogus: accept() isn't supported on a UDP connection. We should however return an error if someone does try that (e.g. EOPNOTSUPP)

Kieran Mansley <kieranm>
Project Administrator
Fri 05 Aug 2011 02:50:19 PM UTC, original submission:

In the following discussion a user points out that we never initialise acceptmbox for UDP netconns (and so also sockets) and this means you can't accept a connection:

http://lists.nongnu.org/archive/html/lwip-users/2011-08/msg00025.html

Kieran Mansley <kieranm>
Project Administrator

 

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 goldsimon (Posted a comment)
  • -unavailable- added by kieranm (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 24 Aug 2011 07:16:05 PM UTCgoldsimonStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      SummaryFix error returned when calling accept() on UDP connections=>Wrong error returned when calling accept() on UDP connections
    Wed 24 Aug 2011 07:13:23 PM UTCgoldsimonStatusNone=>Confirmed
      Assigned toNone=>goldsimon
      SummaryErrors aren\'t returned when UDP connections call accept=>Fix error returned when calling accept() on UDP connections
    Fri 05 Aug 2011 02:59:59 PM UTCkieranmSummaryUDP connections can\'t accept as acceptmbox never set up=>Errors aren't returned when UDP connections call accept

    Back to the top


    Powered by Savane 3.1-cleanup1