patchlwIP - A Lightweight TCP/IP stack - Patches: patch #7957, Implementation for ioctl /...

 
 

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

patch #7957: Implementation for ioctl / SO_ERROR provided.

Submitter:  Thomas Taranowski <taranowski>
Submitted:  Mon 25 Feb 2013 03:53:14 AM UTC
   
 
Category:  sockets/netconn Priority:  5 - Normal
Status:  Works For Me Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Sat 18 Jan 2014 09:25:02 PM UTC, comment #1: 

getsockopt(SO_ERROR) should already work. Plus, I can't find lwip_get_sockerr() in my sources...
Please file a bug if getsockopt(SO_ERROR) doesn't work as expected.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 25 Feb 2013 03:53:14 AM UTC, original submission:  

Code was added to return the last error for a socket in response to the SO_ERROR ioctl request.

The patch file is attached, but the implementation is trivial, and is pasted below for convenience.

Index: api/sockets.c
===================================================================
--- api/sockets.c (revision 27558)
+++ api/sockets.c (revision 27632)
@@ -1509,6 +1509,9 @@
     /* UNIMPL case SO_DEBUG: */
     /* UNIMPL case SO_DONTROUTE: */
     case SO_ERROR:
+    *optlen = sizeof(int);
+    ((int)optval) = lwip_get_sockerr(s);
+    break;
     case SO_KEEPALIVE:
     /* UNIMPL case SO_CONTIMEO: */
     /* UNIMPL case SO_SNDTIMEO: */


Thomas Taranowski <taranowski>
Group Member

 

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

Attached Files
file #27521:  so_error_feature.patch added by taranowski (454B - application/octet-stream)

 

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 taranowski (Submitted the item)
  • -email is unavailable- added by taranowski
  •  

    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
    2014-01-18 goldsimon StatusNone Works For Me
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2013-02-25 taranowski Attached File- Added so_error_feature.patch, #27521
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code