summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-02-17 07:43:32 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-02-17 07:43:32 +0000
commitdc46c0676fa55e6953b97ad8f5b7df33c31cdcfc (patch)
tree163157aa18e8f7ac5e0bf7beb93f54872e830be0 /socket.h
parent651a01f91323949b131a099b2755d07a7a79b662 (diff)
downloadopenvpn-dc46c0676fa55e6953b97ad8f5b7df33c31cdcfc.tar.gz
openvpn-dc46c0676fa55e6953b97ad8f5b7df33c31cdcfc.tar.xz
openvpn-dc46c0676fa55e6953b97ad8f5b7df33c31cdcfc.zip
Version 2.1_beta10 released
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@899 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/socket.h b/socket.h
index 82b3626..f440659 100644
--- a/socket.h
+++ b/socket.h
@@ -207,6 +207,7 @@ struct link_socket
# define SF_USE_IP_PKTINFO (1<<0)
# define SF_TCP_NODELAY (1<<1)
+# define SF_PORT_SHARE (1<<2)
unsigned int sockflags;
/* for stream sockets */
@@ -658,7 +659,11 @@ link_socket_set_outgoing_addr (const struct buffer *buf,
* such as TCP.
*/
-void stream_buf_init (struct stream_buf *sb, struct buffer *buf);
+void stream_buf_init (struct stream_buf *sb,
+ struct buffer *buf,
+ const unsigned int sockflags,
+ const int proto);
+
void stream_buf_close (struct stream_buf* sb);
bool stream_buf_added (struct stream_buf *sb, int length_added);