From owner-freebsd-current Tue Aug 8 05:26:15 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id FAA26182 for current-outgoing; Tue, 8 Aug 1995 05:26:15 -0700 Received: from dolphin.mikom.csir.co.za (dolphin.mikom.csir.co.za [146.64.28.40]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id FAA26136 for ; Tue, 8 Aug 1995 05:25:43 -0700 Received: (from bertus@localhost) by dolphin.mikom.csir.co.za (8.6.11/8.6.6) id OAA01386 for current@freebsd.org; Tue, 8 Aug 1995 14:27:04 +0200 From: Bertus Pretorius Message-Id: <199508081227.OAA01386@dolphin.mikom.csir.co.za> Subject: Re: rlogin bug -> OOB bug? To: current@freebsd.org Date: Tue, 8 Aug 1995 14:27:03 +0200 (SAT) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1628 Sender: current-owner@freebsd.org Precedence: bulk Hi, I'm a bit late on this discussion because i do not read current. Jhay pointed it out to me. My experience is as follows: It wrote a little tcp relay that is suppose to take care of OOB but it failed. After detailed and painfull searching I found the following: Telnet and ftp (rlogin not checked) send more than one OOB byte - ftp 2 and telnet often a long string. When OOB is read inline or with the OOB flag set in the read you recieve only one byte. This byte being the last byte of the OOB bytes in the packet. The ATMARK ioctl marks also only the last byte, that is when you perform a read, OOB set to inline, the read returns before the last byte and the mark is set to indicate to following byte is OOB. When the line or read is slow that byte is moved forward as the specs say with the following result: packet: OOB bytes , normal bytes data read: OOB bytes normal bytes With a fast line it is as follows: packet: OOB bytes , normal bytes data read: normal bytes , OOB bytes , normal bytes I tried to read the tcp code in the kernel and it seems to me that FreeBSD only handles the last OOB byte in a packet as OOB data - not that I know what the code really does :). -- +-Bertus Pretorius------------ (O) (O) ---------------bertus@mikom.csir.co.za-+ | mikomtek ^ +27 12 841-3001 (Voice) | | CSIR \___/ +27 12 841-4720 (FAX) | +-----------------A smile is the same in all languages------------------------+