This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: RedBoot doesn't handle telnet WILL properly.
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Grant Edwards <grante at visi dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 07 Apr 2006 16:59:24 -0600
- Subject: Re: [ECOS] RedBoot doesn't handle telnet WILL properly.
- References: <e0meso$h51$1@sea.gmane.org>
On Sat, 2006-04-01 at 17:56 +0000, Grant Edwards wrote:
> Why does RedBoot handle DO but not WILL? It's normal for a
> telnet client to send a bunch of WILL commands after connecting
> to a server.
>
> The current code in net_io_getc_nonblock() handles the telnet
> DO by replying with a WONT (which is a correct). But, when it
> receives a WILL sequence from the client, it just returns the
> option code as a received character and doesn't reply to the
> client.
>
> This causes the first command read by the main loop to contain
> a bunch of "garbage" characters consisting of all of the option
> codes which the client said it "WILL" do during option
> negotiation.
>
> I've added code to net_io_getc_nonblock() in my version of
> RedBoot to fix this problem.
Seems reasonable - applied (with a ChangeLog - next time, please
provide one and send to ecos-patches :-)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss