From 90ac52eaefcd1c514f0e63cf085e1d17520622ba Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Mon, 8 Feb 2016 22:34:07 -0800 Subject: [PATCH] Document the remaining DTLS states 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 Signed-off-by: David Woodhouse --- openconnect-internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openconnect-internal.h b/openconnect-internal.h index fbcbff56..7ebf31d5 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 */