[PATCH V2 01/11] Document the remaining DTLS states

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 fbcbff56b60e..7ebf31d5c1d3 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.7.0




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux