summaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@gmail.com>2015-11-16 12:15:47 +0530
committerSusant Sahani <ssahani@gmail.com>2015-11-18 09:34:18 +0530
commit74bb646ee5a812e91949c03fa461bc4bd7d2d7b8 (patch)
tree77005e44f0d3679e44a2be084aef627ddd92471c /src/core/socket.h
parent92939fc4c0261dccd4b755186aba84a9b1412bed (diff)
socket: Add support for socket protcol
Now we don't support the socket protocol like sctp and udplite . This patch add a new config param SocketProtocol: udplite/sctp With this now we can configure the protocol as udplite = IPPROTO_UDPLITE sctp = IPPROTO_SCTP Tested with nspawn:
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h
index 94cda8a90d..fb3948130f 100644
--- a/src/core/socket.h
+++ b/src/core/socket.h
@@ -120,6 +120,8 @@ struct Socket {
bool remove_on_stop;
bool writable;
+ int socket_protocol;
+
/* Socket options */
bool keep_alive;
bool no_delay;