[U-Boot-Users] PATCH: Add console nul char support for telnet PAD

This patch adds console nul char support for use with telnet and telco pads. Telnet will append nul characters to fill the packet on transmission. This patch works nicely with the telnet pad in the BDI2000. You may want to add "mode character" to your .telnetrc file for normal u-boot console operation.
Carl Riechers
__________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com
--- u-boot-bl/common/main.c 2004-01-16 18:39:30.000000000 -0600 +++ u-boot/common/main.c 2004-03-17 09:17:48.000000000 -0600 @@ -574,6 +574,12 @@ int readline (const char *const prompt) puts ("\r\n"); return (p - console_buffer);
+ /* + * ignore padding from telnet or telco pads + */ + case '\0': /* nul */ + continue; + case 0x03: /* ^C - break */ console_buffer[0] = '\0'; /* discard input */ return (-1);

In message 20040318030109.46774.qmail@web60508.mail.yahoo.com you wrote:
This patch adds console nul char support for use with telnet and telco pads. Telnet will append nul characters to fill the packet on transmission. This
Thanks, added.
Best regards,
Wolfgang Denk
participants (2)
-
Carl Riechers
-
Wolfgang Denk