/* -*-c-*-
*
- * $Id: tripe-protocol.h,v 1.1 2003/10/15 09:30:18 mdw Exp $
+ * $Id$
*
* Protocol definition for TrIPE
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: tripe-protocol.h,v $
- * Revision 1.1 2003/10/15 09:30:18 mdw
- * Add support for Ethereal protocol analysis.
- *
- */
-
#ifndef TRIPE_PROTOCOL_H
#define TRIPE_PROTOCOL_H
#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 */
+#define MISC_GREET 5u /* A greeting from a NATed peer */
+
/* --- 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