Subject: Data loss between interface and socket
To: None <tech-kern@netbsd.org>
From: Ingolf Koch <ingolf@maus.rz.uni-jena.de>
List: tech-kern
Date: 11/01/1998 19:05:04
Hi,

there are still problems using the Compex LinkPort PCMCIA
Ethernet card (see kern/6349). It seems to be impossible to
connect(2) to a socket from a remote machine via ne0.

(The problem with irq/io collision was solved by setting
PCIC_ISA_INTR_ALLOC_MASK etc to appropriate values; see
<19981027000421.A545@maus.rz.uni-jena.de> and replies in
the port-i386 list.)

A local listen(2)ing server does not return from accept(2)
when there is a connect(2) from a remote machine which uses
the PCMCIA ethernet card. So it is for example impossible
to telnet, ftp, etc to the local machine from remote via
this interface.

The other direction (the remote machine being the server)
works well. I can for example mount and use a remote directory
via NFS.

Using another local interface (e.g. sl0) works well in both
directions. All interfaces/routes are configured correctly,
/etc/services, /etc/inetd.conf etc are ok, inetd is running.

As the fllowing tcpdump output shows, there _are_ tcp packets
coming in via ne0, but they seem to get lost somewhere between
the interface and the socket part.

elefant# tcpdump -vv host maus
tcpdump: listening on ne0
21:50:18.046792 maus.1029 > elefant.telnet: S 522521086:522521086(0)
    win 16384 <mss 1460,nop,wscale 0,nop,nop,timestamp[|tcp]>
    [tos 0x10] (ttl 64, id 1761)
21:50:23.900406 maus.1029 > elefant.telnet: S 522521086:522521086(0)
    win 16384 <mss 1460,nop,wscale 0,nop,nop,timestamp[|tcp]>
    [tos 0x10] (ttl 64, id 1775)
21:50:35.899051 maus.1029 > elefant.telnet: S 522521086:522521086(0)
    win 16384 <mss 1460,nop,wscale 0,nop,nop,timestamp[|tcp]>
    [tos 0x10] (ttl 64, id 1780)

("elefant" is local ne0's name; "maus" is the remote machine
executing a "telnet elefant" command.)

Are there any kernel debugging options I could turn on to try
to find out more on this problem?

BTW, talk(1)ing from maus to elefant works. Especially the
ring which is sent to elefant (using udp).

My laptop is running NetBSD-1.3.2/i386 with the patch in
kern/6349 (see above).

Regards
    Ingolf
-- 

Ingolf Koch         http://www.minet.uni-jena.de/~ingolf/
PGP: 0x7B3B5661  213C 828E 0C92 16B5  05D0 4D5B A324 EC04