X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/53a941d3f97a50964587c6e9533b1e43e74a57a8..HEAD:/common/protocol.h diff --git a/common/protocol.h b/common/protocol.h index dbb3bea6..e40cf177 100644 --- a/common/protocol.h +++ b/common/protocol.h @@ -9,19 +9,18 @@ * * This file is part of Trivial IP Encryption (TrIPE). * - * TrIPE is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * TrIPE is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your + * option) any later version. * - * TrIPE is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * TrIPE is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. * * You should have received a copy of the GNU General Public License - * along with TrIPE; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with TrIPE. If not, see . */ #ifndef TRIPE_PROTOCOL_H @@ -65,7 +64,10 @@ #define KX_REPLY 2u #define KX_SWITCH 3u #define KX_SWITCHOK 4u -#define KX_NMSG 5u +#define KX_TOKENRQ 5u +#define KX_TOKEN 6u +#define KX_KNOCK 7u +#define KX_NMSG 8u /* --- Miscellaneous packets --- */ @@ -77,6 +79,7 @@ #define MISC_EPING 3u /* Encrypted ping */ #define MISC_EPONG 4u /* Encrypted ping response */ #define MISC_GREET 5u /* A greeting from a NATed peer */ +#define MISC_BYE 6u /* Departure notification */ /* --- Symmetric encryption and keysets --- * *