summaryrefslogtreecommitdiff
path: root/src/openvpn/occ.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/occ.h
parentd53dba59e78da865c4fe820386ff2f4f76925f3b (diff)
New upstream version 2.4.0upstream/2.4.0
Diffstat (limited to 'src/openvpn/occ.h')
-rw-r--r--src/openvpn/occ.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/openvpn/occ.h b/src/openvpn/occ.h
index 5d88cc9..843ceb2 100644
--- a/src/openvpn/occ.h
+++ b/src/openvpn/occ.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
@@ -36,8 +36,8 @@
* OCC (OpenVPN Configuration Control) protocol opcodes.
*/
-#define OCC_REQUEST 0 /* request options string from peer */
-#define OCC_REPLY 1 /* deliver options string to peer */
+#define OCC_REQUEST 0 /* request options string from peer */
+#define OCC_REPLY 1 /* deliver options string to peer */
/*
* Send an OCC_REQUEST once every OCC_INTERVAL
@@ -52,11 +52,11 @@
/*
* Other OCC protocol opcodes used to estimate the MTU empirically.
*/
-#define OCC_MTU_LOAD_REQUEST 2 /* Ask peer to send a big packet to us */
-#define OCC_MTU_LOAD 3 /* Send a big packet to peer */
-#define OCC_MTU_REQUEST 4 /* Ask peer to tell us the largest
- packet it has received from us so far */
-#define OCC_MTU_REPLY 5 /* Send largest packet size to peer */
+#define OCC_MTU_LOAD_REQUEST 2 /* Ask peer to send a big packet to us */
+#define OCC_MTU_LOAD 3 /* Send a big packet to peer */
+#define OCC_MTU_REQUEST 4 /* Ask peer to tell us the largest
+ * packet it has received from us so far */
+#define OCC_MTU_REPLY 5 /* Send largest packet size to peer */
/*
* Process one command from mtu_load_test_sequence
@@ -75,21 +75,21 @@
*/
struct mtu_load_test
{
- int op; /* OCC opcode to send to peer */
- int delta; /* determine packet size to send by using
- this delta against currently
- configured MTU */
+ int op; /* OCC opcode to send to peer */
+ int delta; /* determine packet size to send by using
+ * this delta against currently
+ * configured MTU */
};
extern const uint8_t occ_magic[];
static inline bool
-is_occ_msg (const struct buffer* buf)
+is_occ_msg(const struct buffer *buf)
{
- return buf_string_match_head (buf, occ_magic, OCC_STRING_SIZE);
+ return buf_string_match_head(buf, occ_magic, OCC_STRING_SIZE);
}
-void process_received_occ_msg (struct context *c);
+void process_received_occ_msg(struct context *c);
-#endif
-#endif
+#endif /* ifdef ENABLE_OCC */
+#endif /* ifndef OCC_H */