1 /*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Steven McCanne of Lawrence Berkeley Laboratory. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)remote-sl.h 7.3 (Berkeley) 05/08/91 11 * 12 * $Header: remote-sl.h,v 1.3 91/03/22 15:34:27 mccanne Exp $ (LBL) 13 */ 14 15 #define FRAME_END 0xc0 /* Frame End */ 16 #define FRAME_ESCAPE 0xdb /* Frame Esc */ 17 #define TRANS_FRAME_END 0xdc /* transposed frame end */ 18 #define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ 19 20 /* 21 * Error codes. 22 */ 23 #define EKGDB_CSUM 1 24 #define EKGDB_2BIG 2 25 #define EKGDB_RUNT 3 26 27 /* 28 * Message limits. SL_MAXMSG is the longest message that can be passed 29 * down to the serial link. The actual MTU is two times the max message 30 * (since each byte might be escaped), plus the two framing bytes. We add 31 * two to the message length to account for the type byte and check sum. 32 * SL_BUFSIZE is one character larger than SL_MAXMSG so we can stuff 33 * a checksum into the input buffer without special casing. 34 */ 35 #define SL_MAXMSG 64 36 #define SL_BUFSIZE (SL_MAXMSG + 1) 37 #define SL_MTU ((2 * (SL_MAXMSG + 2) + 2)) 38 39