NetBSD Problem Report #839
From gnats Thu Mar 2 11:51:05 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id LAA01016 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 2 Mar 1995 11:51:01 -0800
Message-Id: <199503021130.WAA15988@zen.void.oz.au>
Date: Thu, 2 Mar 1995 22:30:32 +1100
From: "Simon J. Gerraty" <sjg@zen.void.oz.au>
Reply-To: sjg@zen.void.oz.au
To: gnats-bugs@netbsd.org
Subject: pppd: bogus LCP echo failure
X-Send-Pr-Version: 3.2
>Number: 839
>Category: bin
>Synopsis: pppd shutsdown despite receiving LCP echo replies
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 02 12:05:03 +0000 1995
>Closed-Date: Wed Mar 22 14:46:25 +0000 1995
>Last-Modified:
>Originator: Simon J. Gerraty
>Release: 1.0
>Organization:
Zen Programming...
>Environment:
System: NetBSD zen.void.oz.au 1.0 NetBSD 1.0 (ZEN) #6: Tue Dec 13 09:55:20 EST 1994 root@zen.void.oz.au:/usr/src/sys/arch/i386/compile/ZEN i386
>Description:
Ok, ppp session to a Sun (Sparcstation 10 running SunOS 4.1.3 and
pppd-2.1.2b) all humming happily. At one point I pinged it for 338
packes with only 2% loss. Yet invariably NetBSD end shutsdown due to
excessive LCP echo failures - while log clearly shows them being
send/received ok. I can only guess that this is an endian problem.
Note both ends are doing LCP but at different frequency.
Log extract:
...
Mar 2 22:09:46 zen pppd[15809]: rcvd [LCP EchoReq id=0x7 5d 60 a9 0e]
Mar 2 22:09:46 zen pppd[15809]: sent [LCP EchoRep id=0x7 2f 52 b1 06 bc a4]
Mar 2 22:12:46 zen pppd[15809]: rcvd [LCP EchoReq id=0x8 5d 60 a9 0e]
Mar 2 22:12:46 zen pppd[15809]: sent [LCP EchoRep id=0x8 2f 52 b1 06 bc a4]
Mar 2 22:13:47 zen pppd[15809]: sent [LCP EchoReq id=0x5 2f 52 b1 06]
Mar 2 22:13:47 zen pppd[15809]: rcvd [LCP EchoRep id=0x5 5d 60 a9 0e]
Mar 2 22:15:46 zen pppd[15809]: rcvd [LCP EchoReq id=0x9 5d 60 a9 0e]
Mar 2 22:15:46 zen pppd[15809]: sent [LCP EchoRep id=0x9 2f 52 b1 06 bc a4]
Mar 2 22:18:47 zen pppd[15809]: rcvd [LCP EchoReq id=0xa 5d 60 a9 0e]
Mar 2 22:18:47 zen pppd[15809]: sent [LCP EchoRep id=0xa 2f 52 b1 06 bc a4]
Mar 2 22:18:47 zen pppd[15809]: Excessive lack of response to LCP echo frames.
Mar 2 22:18:47 zen pppd[15809]: sent [LCP TermReq id=0x2]
Mar 2 22:18:47 zen pppd[15809]: rcvd [LCP TermAck id=0x2]
Mar 2 22:18:47 zen pppd[15809]: Connection terminated.
Mar 2 22:18:47 zen pppd[15809]: Exit.
I've not spent enough time looking at the source yet, but lpc.c
indicates that a magic number must be correct before it resets the
count of pending requests. My _guess_ is that that check is failing.
I checked the Feb26-current pppd sources against 1.0 and did not spot
any significant changes in this regard.
>How-To-Repeat:
<code/input/activities to reproduce the problem (multiple
lines)>
Try LCP echo.
>Fix:
The LCP echo handling in pppd was trying to use a size of 6 rather
than 4, and was rejecting what it thought were short replies.
- mycroft
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Wed Mar 22 06:46:25 PST 1995
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.