Hi all,
Me again...
I am implementing a very light weight tcp/IP layer on a microcontroller. The micro has a RF tranceiver that communicates with another rf transceiver (bridge) connected to a PC running freebsd.
I am using the command fetch http://192.168.1.2 to make an http request to the micro in order to get a simple web page.
At the micro, it arrives the SYN message and it replys with the SYN/ACK to the freebsb. Next free bsd sends a RST (reset) instead of a ack, for all my attempts.
Why does free bsd doesnt send the ack to finish the 3way handshake of the TCP protocol?
Using tcpdump I can see this:
PC sends, on the 16 bit flag field this:
A002 - first 6 bits define the flags=000010 (SYN) (OK!)
Micro replys with this:
6012 - 00010010 (ACK|SYN) (OK!)
PC then sends this:
5004 - 00000100 (RST) (???)
Very strange for me...
Any help?
Thanks a lot
Alex
(Can I put some debug messages on the tcp implementation and compile it again? Any advices on doing that?)
Me again...
I am implementing a very light weight tcp/IP layer on a microcontroller. The micro has a RF tranceiver that communicates with another rf transceiver (bridge) connected to a PC running freebsd.
I am using the command fetch http://192.168.1.2 to make an http request to the micro in order to get a simple web page.
At the micro, it arrives the SYN message and it replys with the SYN/ACK to the freebsb. Next free bsd sends a RST (reset) instead of a ack, for all my attempts.
Why does free bsd doesnt send the ack to finish the 3way handshake of the TCP protocol?
Using tcpdump I can see this:
PC sends, on the 16 bit flag field this:
A002 - first 6 bits define the flags=000010 (SYN) (OK!)
Micro replys with this:
6012 - 00010010 (ACK|SYN) (OK!)
PC then sends this:
5004 - 00000100 (RST) (???)
Very strange for me...
Any help?
Thanks a lot
Alex
(Can I put some debug messages on the tcp implementation and compile it again? Any advices on doing that?)