Subject: detecting line hangup with pppd
To: None <>
From: Darren Hosking <>
List: netbsd-bugs
Date: 07/25/1994 22:49:41
I'm running pppd under netbsd current (1.0A) and have the following
problem. Whenever the line drops (for reasons unknown, I can't determine
which end is hanging up or why) pppd doesn't realize and continues to
run (rather than exit).

Here are the details:

	- I have softcar set on the tty that pppd is using

tty02	"/usr/libexec/getty std.9600"	unknown off softcar

	- the pppd command line looks as follows:

#! /bin/csh
set PPP=/usr/local/lib/ppp
pppd asyncmap a0000 defaultroute locaddr:remaddr netmask connect $PPP/ppp crtscts lock tty02 57600

This means I will have to write a script that periodically checks if the
line is up and if not, kills pppd and starts it again. 

I've tried using the lcp-echo options of pppd but it always timesout and
kills the connection, it appears that the Xylogics annex at the other
end doesn't support lcp echo.

Does anyone have any ideas how I can resolve this problem?

Also, how can I get debugging info about how or why the line dropped
in the first place? The debugging support in pppd seems only to
provide actual packet debugging no serial line status etc?

	Thanks, dmh

Darren Hosking, TUSC Computer Systems,