chiark / gitweb /
Keepalives and pings.
[tripe] / tripe-protocol.h
index 1961785aa550ba57737eba969e376a6bf93a7cb0..ebf7a71d9fe8d60e0d4343be0e398a76bbd73e3f 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tripe-protocol.h,v 1.2 2004/04/08 01:36:17 mdw Exp $
+ * $Id$
  *
  * Protocol definition for TrIPE
  *
 #define KX_SWITCHOK 5u
 #define KX_NMSG 6u
 
+/* --- Miscellaneous packets --- */
+
+#define MSG_MISC 0x20
+
+#define MISC_NOP 0u                    /* Do nothing; ignore me */
+#define MISC_PING 1u                   /* Transport-level ping */
+#define MISC_PONG 2u                   /* Transport-level ping response */
+#define MISC_EPING 3u                  /* Encrypted ping */
+#define MISC_EPONG 4u                  /* Encrypted ping response */
+
 /* --- Symmetric encryption and keysets --- *
  *
  * Packets consist of an 80-bit MAC, a 32-bit sequence number, and the
  * encrypted payload.
  *
  * The plaintext is encrypted using Blowfish in CBC mode with ciphertext
- * stealing (as described in [Schneier].  The initialization vector is
+ * stealing (as described in [Schneier]).  The initialization vector is
  * selected randomly, and prepended to the actual ciphertext.
  *
  * The MAC is computed using the HMAC construction with RIPEMD160 over the