X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/165db1a8d131ee6f8244ca392c7ae2074b030774..452bf3f6897b8c6a22b51e1ef228da39136d51a7:/tripe-protocol.h?ds=inline diff --git a/tripe-protocol.h b/tripe-protocol.h index bce8f1dc..bfa97487 100644 --- a/tripe-protocol.h +++ b/tripe-protocol.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: tripe-protocol.h,v 1.1 2003/10/15 09:30:18 mdw Exp $ + * $Id$ * * Protocol definition for TrIPE * @@ -26,14 +26,6 @@ * 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 @@ -76,13 +68,24 @@ #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