5 * (c) 2008 Straylight/Edgeware
8 /*----- Licensing notice --------------------------------------------------*
10 * This file is part of Trivial IP Encryption (TrIPE).
12 * TrIPE is free software: you can redistribute it and/or modify it under
13 * the terms of the GNU General Public License as published by the Free
14 * Software Foundation; either version 3 of the License, or (at your
15 * option) any later version.
17 * TrIPE is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * You should have received a copy of the GNU General Public License
23 * along with TrIPE. If not, see <https://www.gnu.org/licenses/>.
33 /*----- Magic constants ---------------------------------------------------*/
35 /* --- SLIP protocol --- */
37 #define SL_END 0xc0 /* End-of-packet boundary */
38 #define SL_ESC 0xdb /* Next character is magic */
39 #define SL_ESCEND 0xdc /* Really meant @SL_END@ */
40 #define SL_ESCESC 0xdd /* Really meant @SL_ESC@ */
42 /*----- That's all, folks -------------------------------------------------*/