summaryrefslogtreecommitdiff
path: root/src/openvpn/mtcp.h
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
commit3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (patch)
treef29063da5bec4caf3853d49a22a09c8619eebd21 /src/openvpn/mtcp.h
parentd53dba59e78da865c4fe820386ff2f4f76925f3b (diff)
New upstream version 2.4.0upstream/2.4.0
Diffstat (limited to 'src/openvpn/mtcp.h')
-rw-r--r--src/openvpn/mtcp.h37
1 files changed, 20 insertions, 17 deletions
diff --git a/src/openvpn/mtcp.h b/src/openvpn/mtcp.h
index b677b48..835b8fd 100644
--- a/src/openvpn/mtcp.h
+++ b/src/openvpn/mtcp.h
@@ -5,7 +5,7 @@
* packet encryption, packet authentication, and
* packet compression.
*
- * Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
+ * Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@ -38,27 +38,30 @@
*/
struct multi_tcp
{
- struct event_set *es;
- struct event_set_return *esr;
- int n_esr;
- int maxevents;
- unsigned int tun_rwflags;
+ struct event_set *es;
+ struct event_set_return *esr;
+ int n_esr;
+ int maxevents;
+ unsigned int tun_rwflags;
#ifdef ENABLE_MANAGEMENT
- unsigned int management_persist_flags;
+ unsigned int management_persist_flags;
#endif
};
struct multi_instance;
struct context;
-struct multi_tcp *multi_tcp_init (int maxevents, int *maxclients);
-void multi_tcp_free (struct multi_tcp *mtcp);
-void multi_tcp_dereference_instance (struct multi_tcp *mtcp, struct multi_instance *mi);
+struct multi_tcp *multi_tcp_init(int maxevents, int *maxclients);
-bool multi_tcp_instance_specific_init (struct multi_context *m, struct multi_instance *mi);
-void multi_tcp_instance_specific_free (struct multi_instance *mi);
+void multi_tcp_free(struct multi_tcp *mtcp);
-void multi_tcp_link_out_deferred (struct multi_context *m, struct multi_instance *mi);
+void multi_tcp_dereference_instance(struct multi_tcp *mtcp, struct multi_instance *mi);
+
+bool multi_tcp_instance_specific_init(struct multi_context *m, struct multi_instance *mi);
+
+void multi_tcp_instance_specific_free(struct multi_instance *mi);
+
+void multi_tcp_link_out_deferred(struct multi_context *m, struct multi_instance *mi);
/**************************************************************************/
@@ -68,10 +71,10 @@ void multi_tcp_link_out_deferred (struct multi_context *m, struct multi_instance
*
* @param top - Top-level context structure.
*/
-void tunnel_server_tcp (struct context *top);
+void tunnel_server_tcp(struct context *top);
-void multi_tcp_delete_event (struct multi_tcp *mtcp, event_t event);
+void multi_tcp_delete_event(struct multi_tcp *mtcp, event_t event);
-#endif
-#endif
+#endif /* if P2MP_SERVER */
+#endif /* ifndef MTCP_H */