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

Submitter:  Kieran Mansley <kieranm>
Submitted:  Fri 05 Aug 2011 02:50:19 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
Wed 24 Aug 2011 07:13:23 PM UTC, comment #2: 

Updated summary to reflect the actual bug

Simon Goldschmidt <goldsimon>
Group administrator
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>
Group Member
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>
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 goldsimon (Posted a comment)
  • -email is unavailable- added by kieranm (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-24 goldsimon StatusConfirmed Fixed
        Open/ClosedOpen Closed
        SummaryFix error returned when calling accept() on UDP connections Wrong error returned when calling accept() on UDP connections
    2011-08-24 goldsimon StatusNone Confirmed
        Assigned toNone goldsimon
        SummaryErrors aren\'t returned when UDP connections call accept Fix error returned when calling accept() on UDP connections
    2011-08-05 kieranm SummaryUDP 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.12