1 2 /* 3 * CDDL HEADER START 4 * 5 * The contents of this file are subject to the terms of the 6 * Common Development and Distribution License (the "License"). 7 * You may not use this file except in compliance with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _CHARS_H 28 #define _CHARS_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 #define CR 13 37 #define LF 10 38 39 40 /* telnet protocol command support */ 41 #define BEL 7 /* not support */ 42 #define BS 8 /* supported */ 43 #define HT 9 /* eoln */ 44 #define VT 11 /* not support */ 45 #define FF 12 /* not support */ 46 #define STOP 18 47 #define START 19 48 49 #define SE 240 /* end of subnegotiation params */ 50 #define NOP 241 51 #define DM 242 /* Data Mark not support */ 52 #define BRK 243 /* termial support */ 53 #define IP 244 /* control-C */ 54 #define AO 245 /* abort output not support */ 55 #define AYT 246 /* Are you there */ 56 #define EC 247 /* Erase character - not support */ 57 #define EL 248 /* Erase line - not support */ 58 #define GA 249 /* Go ahead. */ 59 #define SB 250 /* Subnegotiation of the indicated option */ 60 #define WILL 251 /* will do */ 61 #define WONT 252 /* refuse */ 62 #define DO 253 /* request do */ 63 #define DONT 254 /* request do not do */ 64 #define IAC 255 /* command */ 65 66 67 68 /* telnet options */ 69 70 #define TEL_ECHO 1 71 #define SUPRESS 3 72 #define STATUS 5 73 #define TM 6 /* timing mark - not supported */ 74 #define TERM_TYPE 24 /* Terminal type -not supported */ 75 #define WIN_SIZE 31 /* window size - not supported */ 76 #define TERM_SP 32 /* terminal speed - not supported */ 77 #define FC 33 /* remote flow control - not supported */ 78 #define LINEMODE 34 /* line mode */ 79 #define ENV 36 /* environment variables */ 80 81 #define VNTSD_DAEMON_CMD '~' 82 83 #ifdef __cplusplus 84 } 85 #endif 86 87 #endif /* _CHARS_H */ 88