[PATCH 1/2] Document the remaining DTLS states
Kevin Cernekee
cernekee at gmail.com
Mon May 18 18:22:31 PDT 2015
At some point we might want to explain what each state means on ESP
versus Cisco connections, but this is a start.
Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
openconnect-internal.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/openconnect-internal.h b/openconnect-internal.h
index 0385f3924c2d..953e6b2496fe 100644
--- a/openconnect-internal.h
+++ b/openconnect-internal.h
@@ -151,9 +151,9 @@ struct pkt {
#define KA_KEEPALIVE 3
#define KA_REKEY 4
-#define DTLS_NOSECRET 0
-#define DTLS_SECRET 1
-#define DTLS_DISABLED 2
+#define DTLS_NOSECRET 0 /* Random secret has not been generated yet */
+#define DTLS_SECRET 1 /* Secret is present, ready to attempt DTLS */
+#define DTLS_DISABLED 2 /* DTLS was disabled on the *client* side */
#define DTLS_SLEEPING 3 /* For ESP, sometimes sending probes */
#define DTLS_CONNECTING 4 /* ESP probe received; must tell server */
#define DTLS_CONNECTED 5 /* Server informed and should be sending ESP */
--
2.2.2
More information about the openconnect-devel
mailing list