#include "extract.h"
-#define TELCMDS
-#define TELOPTS
-
/* NetBSD: telnet.h,v 1.9 2001/06/11 01:50:50 wiz Exp */
/*
#define SYNCH 242 /* for telfunc calls */
-#ifdef TELCMDS
static const char *telcmds[] = {
"EOF", "SUSP", "ABORT", "EOR",
"SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC",
"EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC", 0,
};
-#else
-extern char *telcmds[];
-#endif
#define TELCMD_FIRST xEOF
#define TELCMD_LAST IAC
#define NTELOPTS (1+TELOPT_NEW_ENVIRON)
-#ifdef TELOPTS
static const char *telopts[NTELOPTS+1] = {
"BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
"STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP",
#define TELOPT_LAST TELOPT_NEW_ENVIRON
#define TELOPT_OK(x) ((unsigned int)(x) <= TELOPT_LAST)
#define TELOPT(x) telopts[(x)-TELOPT_FIRST]
-#endif
/* sub-option qualifiers */
#define TELQUAL_IS 0 /* option is... */