[rtems commit] libnetworking: Hide SO_PRIVSTATE
Sebastian Huber
sebh at rtems.org
Tue Jun 28 13:20:23 UTC 2016
Module: rtems
Branch: master
Commit: 4ba4f8218a6e84484f32a43d8b0a95759d0741ba
Changeset: http://git.rtems.org/rtems/commit/?id=4ba4f8218a6e84484f32a43d8b0a95759d0741ba
Author: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
Date: Thu Apr 21 14:42:53 2016 +0200
libnetworking: Hide SO_PRIVSTATE
---
cpukit/libnetworking/kern/uipc_socket.c | 7 +++++++
cpukit/libnetworking/sys/socket.h | 1 -
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/cpukit/libnetworking/kern/uipc_socket.c b/cpukit/libnetworking/kern/uipc_socket.c
index b221a37..a583653 100644
--- a/cpukit/libnetworking/kern/uipc_socket.c
+++ b/cpukit/libnetworking/kern/uipc_socket.c
@@ -45,6 +45,13 @@
#include <sys/signalvar.h>
#include <sys/sysctl.h>
#include <limits.h>
+#ifdef __rtems__
+/*
+ * This socket option was removed 1997 from the upstream FreeBSD network stack.
+ * Turn this feature into essentially dead code.
+ */
+#define SO_PRIVSTATE 0x1009 /* get/deny privileged state */
+#endif /* __rtems__ */
static int somaxconn = SOMAXCONN;
SYSCTL_INT(_kern, KIPC_SOMAXCONN, somaxconn, CTLFLAG_RW, &somaxconn, 0, "");
diff --git a/cpukit/libnetworking/sys/socket.h b/cpukit/libnetworking/sys/socket.h
index 3821d8b..85de630 100644
--- a/cpukit/libnetworking/sys/socket.h
+++ b/cpukit/libnetworking/sys/socket.h
@@ -100,7 +100,6 @@ typedef __socklen_t socklen_t;
#define SO_RCVTIMEO 0x1006 /* receive timeout */
#define SO_ERROR 0x1007 /* get error status and clear */
#define SO_TYPE 0x1008 /* get socket type */
-#define SO_PRIVSTATE 0x1009 /* get/deny privileged state */
/*
* RTEMS addition: get and set wakeup functions.
More information about the vc
mailing list