[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #7957] Implementation for ioctl / SO_ERROR provided.
From: |
Thomas Taranowski |
Subject: |
[lwip-devel] [patch #7957] Implementation for ioctl / SO_ERROR provided. |
Date: |
Mon, 25 Feb 2013 03:53:16 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22 |
URL:
<http://savannah.nongnu.org/patch/?7957>
Summary: Implementation for ioctl / SO_ERROR provided.
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: taranowski
Submitted on: Mon 25 Feb 2013 03:53:14 AM GMT
Category: sockets/netconn
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
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: */
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 25 Feb 2013 03:53:14 AM GMT Name: so_error_feature.patch Size:
454B By: taranowski
<http://savannah.nongnu.org/patch/download.php?file_id=27521>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?7957>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [patch #7957] Implementation for ioctl / SO_ERROR provided.,
Thomas Taranowski <=