From owner-cvs-usrsbin Thu May 7 18:19:50 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA17738 for cvs-usrsbin-outgoing; Thu, 7 May 1998 18:19:50 -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 SAA17310; Thu, 7 May 1998 18:18:18 -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 SAA13676; Thu, 7 May 1998 18:15:22 -0700 (PDT) Date: Thu, 7 May 1998 18:15:22 -0700 (PDT) Message-Id: <199805080115.SAA13676@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 hdlc.c lqr.c lqr.h main.c modem.c mp.c timer.c timer.h Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 1998/05/07 18:15:21 PDT Modified files: (Branch: MP) usr.sbin/ppp bundle.c datalink.c hdlc.c lqr.c lqr.h main.c modem.c mp.c timer.c timer.h Log: o Rename datalinks as soon as the name has been received so that LQM and HDLC timer diagnostics come out with the correct name. o Don't send an LQR immediately upon reviving a datalink. Leave it 'till the next timeout. o Add the link name to some more LQR diagnostics. o Break out of the main loop when a descriptor exception is seen in select(). o Remove the evil nointr_[u]sleep() functions. Timers should be (and are) used instead. o Treat a read() of 0 bytes as an error that's fatal to the link on which the read() is done. We should never read() 0 after select() says there's something there - not unless the link has been closed by the other side. o Write the data seen before a HDLC header to the terminal in `term' mode, *not* back to the modem :-/ o Initialise our transmitted file descriptor before starting any timers. o Only send data links that have *no* pending output data. This means that our final ACK will be written rather than being nuked with the datalink transmission. Revision Changes Path 1.1.2.77 +8 -28 src/usr.sbin/ppp/Attic/bundle.c 1.1.2.57 +25 -4 src/usr.sbin/ppp/Attic/datalink.c 1.28.2.34 +3 -3 src/usr.sbin/ppp/hdlc.c 1.22.2.30 +37 -14 src/usr.sbin/ppp/lqr.c 1.12.2.6 +2 -1 src/usr.sbin/ppp/lqr.h 1.121.2.57 +4 -1 src/usr.sbin/ppp/main.c 1.77.2.68 +26 -21 src/usr.sbin/ppp/modem.c 1.1.2.26 +9 -5 src/usr.sbin/ppp/Attic/mp.c 1.27.2.11 +1 -57 src/usr.sbin/ppp/timer.c 1.5.4.5 +1 -3 src/usr.sbin/ppp/timer.h