Giter Club home page Giter Club logo

Comments (14)

dedhed avatar dedhed commented on July 16, 2024

telnetcap.zip

from zimodem.

bozimmerman avatar bozimmerman commented on July 16, 2024

Hi. Sorry to hear you are having troubles. First, some information on what the telnet client code does:

  1. It keeps garbage characters generated by telnet negotiations from being forwarded to the serial port.

That's it. Oh, it also responds to the TERMTYPE code. But that's it.
So, when the socket is in telnet mode and reads an IAC, it will immediately do a blocking read for the code. Any WILL X or WONT X command it gets, it always responds with DONT X. Any DO or DONT, it just ignores. A Subcode is parsed to see if it is TERMTYPE, and if it is, it responds, but otherwise ignores the subcode.
I'll now go take a look at your capture and see if something stands out.

from zimodem.

bozimmerman avatar bozimmerman commented on July 16, 2024

So, I looked at the capture, and I see the DO This and DO Thats in the data. There's no response, but given the algorithm I described above, I wouldn't expect any. Does the RFC say that a client must respond to all DO commands, with, WILL or WONT I'm guessing?

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

If I am reading this correctly, it does look like the RFC expects at least a confirmation?

From RFC854:

  DO (option code)    253    Indicates the request that the
                             other party perform, or
                             confirmation that you are expecting
                             the other party to perform, the
                             indicated option.

from zimodem.

bozimmerman avatar bozimmerman commented on July 16, 2024

I'll take a look at the rfc and see if the client MAY respond to that command, or SHALL respond to that command. :) May I ask what sort of server you are trying to connect to? That might tell me a lot.

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

Thanks! If I can help is any way at all, please let me know.

I have tried two servers, the trace comes from a Raspberry Pi running Raspbian 8. The other server is a VM running Ubuntu Server 16.04.2 LTS.

Thanks for the quick response tonight!

from zimodem.

bozimmerman avatar bozimmerman commented on July 16, 2024

Heck, hang around another 30 mins, and I'll probably have a 3.3 for you to try out.

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

Haha! I'll be here :-)

from zimodem.

bozimmerman avatar bozimmerman commented on July 16, 2024

OK, I put 3.3 out there, but won't make it official until it's passed both of our tests.
To force your modem to upgrade to a version that's not official yet (like 3.3), you need to enter this:
AT&U=3.3

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

Both platforms are running telnetd (xinetd/in.telnetd) ... the other major option would be inetutils-telnetd from what I'm seeing. Just in case you wanted it more specifically.

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

Ah just saw your last reply, sorry. I'll give it a shot and let you know.

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

Woooot! That did it. 9600 baud and flow control seems great too.

I'm totally floored by your response to this. THANK YOU, amazing work.

from zimodem.

bozimmerman avatar bozimmerman commented on July 16, 2024

Hey, you helped me find a crippling bug. You have my thanks as well. I only tested telnet against, wait for it, another telnet server I did that was "roughly inspired" by the RFC.

from zimodem.

dedhed avatar dedhed commented on July 16, 2024

I'll let you know if anything else comes up :-)

Thanks again.

from zimodem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.