From owner-freebsd-bugs Fri May 5 17:28:31 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA18112 for bugs-outgoing; Fri, 5 May 1995 17:28:31 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id RAA18096 for ; Fri, 5 May 1995 17:28:28 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA20845; Fri, 5 May 95 18:21:54 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9505060021.AA20845@cs.weber.edu> Subject: Re: Weirdity in arpa/telnet.h ?? To: root@deadline.snafu.de (Andreas S. Wetzel) Date: Fri, 5 May 95 18:21:54 MDT Cc: freebsd-bugs@FreeBSD.org In-Reply-To: from "Andreas S. Wetzel" at May 6, 95 00:58:10 am X-Mailer: ELM [version 2.4dev PL52] Sender: bugs-owner@FreeBSD.org Precedence: bulk > In the includefile arpa/telnet.h it reads ?! > > #define NTELOPTS (1+TELOPT_NEW_ENVIRON) > #ifdef TELOPTS > char *telopts[NTELOPTS+1] = { [ ... ] > #endif <==== !!! ==== [ ... ] > #ifdef TELCMDS > char *telcmds[] = { [ ... ] > #else <==== !!! ==== > extern char *telcmds[]; > #endif <==== !!! ==== The commands are used in building clients that talk the protocol. The options are useful for building servers. You are not guaranteed to have an "extern char *telopts" in a program that uses arpa/telnet.h, but you *will* be using the commands to communicate over the link for anything that includes it. Hint: look at the telnet and ftp client programs to see if you can find a usage of "telopts". Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.