Re: telnet mode character

From: Bernd Walter <ticso(at)cicely12.cicely.de>
Date: Thu, 9 Feb 2006 20:36:24 +0100

On Thu, Feb 09, 2006 at 07:34:37PM +0100, Bernd Walter wrote:
> Ein wenig OT, aber evtl. weiß das ja zufällig einer.
> Was muss ein telnetd senden, damit ein telnet client im mode character
> landed?
> Also kein lokales echo oder linebuffering.
> Ich habe das hier bei mir unter FreeBSD in der telnet.rc gesetzt,
> aber das muss mit anderen Clients sofort funktionieren.
> Zur Zeit sended der TCP-Service überhaupt keine Initialisierung.

Ich schicke jetzt folgende Zeichen:
        const char init[] = {
                0xff, 0xfb, 0x01,
                0xff, 0xfb, 0x03,
                0xff, 0xfb, 0x00,
                0xff, 0xfd, 0x01,
                0xff, 0xfd, 0x00
        };

Die Reaktion wird nicht überprüft.
Aber es scheint zu funktionieren.
Jedenfalls verhält sich der FreeBSD-telnet von Anfang an wie ich
es haben wollte.

[75]cicely7# telnet
telnet> toggle options
Will show option processing.
telnet> open 10.1.1.236 23
Trying 10.1.1.236...
Won't send login name and/or authentication information.
Connected to dyn1-236.cicely.de.
Escape character is '^]'.
RCVD WILL ECHO
SENT DO ECHO
RCVD WILL SUPPRESS GO AHEAD
SENT DO SUPPRESS GO AHEAD
RCVD WILL BINARY
SENT DO BINARY
RCVD DO ECHO
SENT WONT ECHO
RCVD DO BINARY
SENT WILL BINARY

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd(at)bwct.de                                  info(at)bwct.de
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 09 Feb 2006 - 20:41:04 CET

search this site