summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/socket.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-06-21 12:01:37 +0200
committerDave Barach <openvpp@barachs.net>2017-06-21 15:22:40 +0000
commitf6616388113efa59e5278c75e5223612d209d4a0 (patch)
treeebf3379bf5c49dfeb9fee4f21296a60d46135e74 /src/vppinfra/socket.h
parenta54230d4e79e088b13f581e301846fc3e259548e (diff)
Add option to create clib_socket with group write permissions
Also allow group write as default for CLI socket connections. Change-Id: I6af1f277f70581358cd9241bf0f5cb0752fe250f Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/socket.h')
-rw-r--r--src/vppinfra/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/socket.h b/src/vppinfra/socket.h
index 08e22e7eb61..75037208d5d 100644
--- a/src/vppinfra/socket.h
+++ b/src/vppinfra/socket.h
@@ -58,6 +58,7 @@ typedef struct _socket_t
#define SOCKET_IS_SERVER (1 << 0)
#define SOCKET_IS_CLIENT (0 << 0)
#define SOCKET_NON_BLOCKING_CONNECT (1 << 1)
+#define SOCKET_ALLOW_GROUP_WRITE (1 << 2)
/* Read returned end-of-file. */
#define SOCKET_RX_END_OF_FILE (1 << 2)