From owner-cvs-usrsbin Fri May 15 11:26:03 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA11982 for cvs-usrsbin-outgoing; Fri, 15 May 1998 11:26:03 -0700 (PDT) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA11846; Fri, 15 May 1998 11:25:45 -0700 (PDT) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA11710; Fri, 15 May 1998 11:21:51 -0700 (PDT) Date: Fri, 15 May 1998 11:21:51 -0700 (PDT) Message-Id: <199805151821.LAA11710@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp bundle.c datalink.c datalink.h main.c mp.c physical.c physical.h Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 1998/05/15 11:21:51 PDT Modified files: (Branch: MP) usr.sbin/ppp bundle.c datalink.c datalink.h main.c mp.c physical.c physical.h Log: o Call bundle_LinkClosed() when transferring a datalink so that the bundle has the opportunity to go PHASE_DEAD and cleanup the interface (if it's the last link). o Regnerate our phys_type value when we transfer the link. o Always clean up the interface when destroying our bundle in case we're abending. o Always clean up our interface when the last link is gone rather than delaying things 'till exit time in the -direct case (the interface is useless anyway). Do this *after* slamming down our NCPs (if they're still around). o Our MP server descriptor now clears the relevent device descriptor from our descriptor [fd]sets when a datalink is on death-row (to be transferred to another running ppp), thus avoiding the possibility of passing a bum descriptor to select() and having ppp abend. o Handle the MP socket descriptor functions from within the bundle descriptor functions. Now we ensure that the MP socket descriptor functions see the descriptor sets *after* they've been seen by our datalinks. o Add/fix a few more comments. Revision Changes Path 1.1.2.83 +33 -10 src/usr.sbin/ppp/Attic/bundle.c 1.1.2.61 +8 -5 src/usr.sbin/ppp/Attic/datalink.c 1.1.2.24 +3 -1 src/usr.sbin/ppp/Attic/datalink.h 1.121.2.60 +1 -6 src/usr.sbin/ppp/main.c 1.1.2.29 +5 -2 src/usr.sbin/ppp/Attic/mp.c 1.1.2.32 +28 -1 src/usr.sbin/ppp/Attic/physical.c 1.1.2.25 +3 -1 src/usr.sbin/ppp/Attic/physical.h