From owner-freebsd-questions Mon Apr 29 01:28:48 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA01288 for questions-outgoing; Mon, 29 Apr 1996 01:28:48 -0700 (PDT) Received: from ucthpx.uct.ac.za (ucthpx.uct.ac.za [137.158.128.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA01077 for ; Mon, 29 Apr 1996 01:24:41 -0700 (PDT) Received: by ucthpx.uct.ac.za (Smail3.1.29.1 #22) id m0uDoFJ-000vaeC; Mon, 29 Apr 96 10:23 SAST Message-Id: From: smarq@ucthpx.uct.ac.za (S Marquard) Subject: PPPD doesn't die cleanly in 2.1-R (bug?) To: freebsd-questions@freebsd.org Date: Mon, 29 Apr 1996 10:23:49 +0200 (SAST) X-Mailer: ELM [version 2.4 PL22] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In the pppd (kernel PPP) in 2.1-RELEASE, if a pppd process dies on a read error, the cleanup procedures are never called. This results in the ppp0 or whatever interface being left configured with the host and remote IP addresses used for that session. If the system is setup to dynamically allocate PPP addresses, this can cause problems - another PPP session can use the same PPP interface, with different host and remote IPs. The interface doesn't get reconfigured for some reason to the new addresses, and a subsequent PPP session on a different ppp interface which is allocated the addresses of the original session (which died), fails. The PPP addresses are on a different subnet to the ethernet interface, and proxyarp is not being used. I fixed this problem by the following patch to /usr/src/usr.sbin/pppd/sys-bsd.c: *** sys-bsd.c.OLD Mon Feb 26 22:11:17 1996 --- sys-bsd.c Mon Apr 29 10:13:09 1996 *************** *** 168,173 **** --- 168,174 ---- return -1; } syslog(LOG_ERR, "read(fd): %m"); + lcp_lowerdown(0); /* die cleanly */ die(1); } return len; Since making this change, things have worked perfectly. Is this a genuine bug in 2.1 pppd, and has it been fixed in -current and -stable? Stephen Marquard smarq@ucthpx.uct.ac.za scm@picasso.wcape.school.za