Re: tcp/ip bug (2.2.12) or telnet client bug

Dave Airlie (airlied@csn.ul.ie)
Mon, 27 Sep 1999 18:38:00 +0100 (IST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---913833367-711401321-938453880=:15348
Content-Type: TEXT/PLAIN; charset=US-ASCII

> > > I insist, there is no daemon listening on
the specified port.
> > > Anything i type in is simply echo'd.
>
> Confirmed that version 2.3.13 has that bug also.

On 2.2.12 the attached C code works to demonstrate the problem, compile
the code to a binary stest

To use it first of all run tcpdump -i lo to snoop your localhost interface
then, do
./stest <anyport with no listener>

Then do look at the tcpdump window and see socket the system is trying to
use, take this number increase it by one and then run

./stest <number+1>

This should connect now ...

e.g.

./stest 9600

tcpdump gives
18:35:21.211797 localhost.9600 > localhost.1315: R 0:0(0) ack 1 win 0

so do ./stest 1316 and it connects...

this is not meant to happen as far as I know ...

Dave.
>

------------ David Airlie, David.Airlie@ul.ie,airlied@skynet --------
Telecommunications Research Centre, ECE Dept, University of Limerick \
http://www.csn.ul.ie/~airlied -- Telecommunications Researcher \
--- TEL: +353-61-202695 -----------------------------------------------

---913833367-711401321-938453880=:15348
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="stest.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9909271838000.15348@skynet.csn.ul.ie>
Content-Description:
Content-Disposition: attachment; filename="stest.c"

I2luY2x1ZGUgPGFycGEvaW5ldC5oPg0KI2luY2x1ZGUgPHN5cy9zb2NrZXQu
aD4NCiNpbmNsdWRlIDxuZXRpbmV0L2luLmg+DQojaW5jbHVkZSA8bmV0aW5l
dC90Y3AuaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPG5ldGRi
Lmg+DQoNCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQoJ
aW50IHgscyxjaDsNCglzdHJ1Y3Qgc29ja2FkZHJfaW4gc2FfaW47DQoJc3Ry
dWN0IGhvc3RlbnQgKmhwOw0KDQoJcz1zb2NrZXQoUEZfSU5FVCwgU09DS19T
VFJFQU0sIDApOw0KCQ0KCWhwPWdldGhvc3RieW5hbWUoImxvY2FsaG9zdCIp
Ow0KCW1lbWNweSgmKHNhX2luLnNpbl9hZGRyKSwgaHAtPmhfYWRkciwgaHAt
PmhfbGVuZ3RoKTsNCg0KCXNhX2luLnNpbl9mYW1pbHk9aHAtPmhfYWRkcnR5
cGU7DQoJc2FfaW4uc2luX3BvcnQ9aHRvbnMoYXRvaShhcmd2WzFdKSk7DQoN
Cgl4PWNvbm5lY3QocywgKGNvbnN0IHN0cnVjdCBzb2NrYWRkciAqKSZzYV9p
biwgc2l6ZW9mKHNhX2luKSk7DQoJaWYgKHg9PS0xKQ0KCXsNCgkJcGVycm9y
KCJDb25uZWN0OiIpOw0KCQlleGl0KC0xKTsNCgl9DQoJcHJpbnRmKCJjb25u
ZWN0ZWQuLlxuIik7DQoJY2g9Z2V0Y2hhcigpOw0KCWNsb3NlKHMpOw0KfQ0K
DQoNCg==
---913833367-711401321-938453880=:15348--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/