Anyone tried TCP over loopback?

Thomas Doerfler (nt) Thomas.Doerfler at imd-systems.de
Sat Sep 10 06:45:09 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phil,

as a small info: I have done this in RTEMS-4.5.0 on a MC68360, and I had
NO trouble with it. Actually I have a server application in RTEMS which
can be contacted either by local client applications (on the same CPU)
or remote clients (like telnet from a host computer).

wkr,
Thomas.


wkr,
Thomas.

Phil Torre schrieb:
> I'm porting some code that uses TCP over loopback as an IPC mechanism.
> I'm running into trouble where the connect() is refused even though
> the matching listen() has already happened.
> 
> After debugging a bit, it turns out that the SYN packet is making it
> through the loopback device and on to tcp_input(), which is responding
> with a RST because it can't find the matching inpcb struct.  It almost
> finds it, but the foreign and local port numbers are swapped, so the
> comparison in in_pcblookuphash() fails. 
> 
> Does this ring any bells with anyone?
> 
> Thanks,
> -Phil
> 


- --
- --------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler           Herbststrasse 8
D-82178 Puchheim          Germany
email:    Thomas.Doerfler at imd-systems.de
PGP public key available at:
     http://www.imd-systems.de/pgpkey_en.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDIoD0wHyg4bDtfjQRAvhNAKCJyFlo5LEsrLBrUNJCN0JUNVDFgwCfUxv3
bCVU9cNmzfFmQ4LX+j9OWw8=
=vwpm
-----END PGP SIGNATURE-----



More information about the users mailing list