tnlited [TiVo]

Some details

I started with the "commands" 2.0 source from TiVo's linux GPL page. I did a little hacking including using my libtivohack.

Let me start out by saying tnlited is totally broken. It has a very simplistic idea of the way telnet options negotiation. I (like others) saw that the FreeBSD telnet client would cause it to bomb.

The best workaround I found is to always specify the port, e.g.:

telnet tivo 23

This disables some of the fancier options negotiation that happens when telnet thinks we're going to talk to a full blown telnet service.

I removed inet_ntoa.c from the Makefile. It turns out if you fix the code in tnlited.c, the libc version if inet_ntoa() works just fine.

I fixed the window size code to correctly parse 4 bytes instead of only two. (This only makes a difference if you have a really large window...)

I fixed the bug that was causing tnlited to bomb. Basically, if the window size is sent at the wrong time, tn_subneg() can get called with a NULL client pointer.

I fixed the code to convert the terminal type to lowercase.


Back to Craig's TiVo Downloads page

Copyright © 2001
Craig Leres