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
commit79f3537f69e125f19f59c36aa090120a63186a54 (patch)
tree2089a3b7dac990841dbc2e4d9b2f535b82dbb0af /src/openvpn/occ.h
parentf2137fedb30cb87448eb03b2f288920df6187571 (diff)
parent3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (diff)
Merge tag 'upstream/2.4.0'
Upstream version 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 */