Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 1995 13:06:22 -0800 (PST)
From:      Frank Mayhar <frank@exit.com>
To:        freebsd-hackers@freebsd.org
Subject:   Help with obscure UUCP problem?
Message-ID:  <199511052106.NAA04256@exit.com>

next in thread | raw e-mail | index | archive | help
For various and sundry reasons, I'm trying to set up uucp to work over a
TCP connection.  Since my provider doesn't run a uucpd (although I've asked
him to do so), I thought I would try to use telnet, instead.  I set it up
as a port of type 'pipe' with the command:
	/usr/bin/telnet -8 -E <host>

Well, it almost works.  But not quite.  It logs in successfully, and starts
the UUCP handshake, but it shortly gets wedged and times out.  I've looked
at it closely, and I don't understand why.  The debug output shows UUCP
thinking it's sending stuff, and it sent stuff prior to the point of failure,
but it suddenly stops, and I never see the data go out.

Here is debug output and the corresponding tcpdump output:

DEBUG: zget_uucp_cmd: Got "\020Shere=kaiwan\000"
Login successful
DEBUG: fsend_uucp_cmd: Sending "Sexit.com -Q30803 -R -N07"
DEBUG: fconn_write: Writing 27 "\020Sexit.com -Q30803 -R -N07\000"
DEBUG: zget_uucp_cmd: Got "\020ROKN07\000"
DEBUG: zget_uucp_cmd: Got "\020PaijGgfte\000"
DEBUG: fsend_uucp_cmd: Sending "Ui"
DEBUG: fconn_write: Writing 4 "\020Ui\000"
DEBUG: fistart: Sending SYNC packsize 4095 winsize 16 channels 7
DEBUG: fconn_io: Writing 14 "\007\000\0000\0044\017\377\020\007\354\346\203\252"
DEBUG: fconn_io: Wrote 14 of 14, read 0 of 14682
DEBUG: fiwait_for_packet: Need 6 bytes
DEBUG: fconn_read: Read 0 ""
DEBUG: fistart: Sending SYNC packsize 4095 winsize 16 channels 7

fmayharppp.1877 > kaiwan.kaiwan.com.telnet: P 96:123(27) ack 1655 win 16384 [tos 0x10]
kaiwan.kaiwan.com.telnet > fmayharppp.1877: . ack 123 win 4096
kaiwan.kaiwan.com.telnet > fmayharppp.1877: P 1655:1663(8) ack 123 win 4096
fmayharppp.1877 > kaiwan.kaiwan.com.telnet: . ack 1663 win 16384 [tos 0x10]
kaiwan.kaiwan.com.telnet > fmayharppp.1877: P 1663:1674(11) ack 123 win 4096
fmayharppp.1877 > kaiwan.kaiwan.com.telnet: . ack 1674 win 16384

The 27 bytes of the Shere=kaiwan handshake got in, and the Shere=exit.com
reply went out.  Two more packets came in, and we tried to set the protocol
to use, but that data never went out, and uucico eventually times out waiting
for a reply that will never come.  I don't know whether it's getting
caught by telnet (although I don't know why it would) or whether it's
getting buffered by the pipe.  Uucico definitely thinks that it was written,
but tcpdump never sees it go out.  How big is the pipe buffer, and how do I
turn off that buffering (if that is indeed the problem)?

Any hints or suggestions would be much appreciated.
-- 
Frank Mayhar frank@exit.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511052106.NAA04256>