From owner-cvs-all Sun Feb 22 16:38:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA12123 for cvs-all-outgoing; Sun, 22 Feb 1998 16:38:52 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) 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 QAA12116; Sun, 22 Feb 1998 16:38:49 -0800 (PST) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA02436; Sun, 22 Feb 1998 16:38:48 -0800 (PST) Date: Sun, 22 Feb 1998 16:38:48 -0800 (PST) Message-Id: <199802230038.QAA02436@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 ccp.c ccp.h chat.c command.c datalink.c datalink.h deflate.c descriptor.h fsm.c hdlc.c ip.c ip.h link.c link.h main.c modem.c modem.h physical.c physical.h ppp.8 pred.c prompt.c server.c vjcomp.c vjcomp.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk brian 1998/02/22 16:38:47 PST Modified files: (Branch: MP) usr.sbin/ppp bundle.c ccp.c ccp.h chat.c command.c datalink.c datalink.h deflate.c descriptor.h fsm.c hdlc.c ip.c ip.h link.c link.h main.c modem.c modem.h physical.c physical.h ppp.8 pred.c prompt.c server.c vjcomp.c vjcomp.h Log: o Remove the global CcpInfo. It's now part of the datalink. Struct bundle will have its own struct ccp in the future too. o The ``set stopped'' command now requires context and doesn't work on the IPCP FSM. o Check if it's time to break out of our top level loop before doing a select - otherwise, we'll select forever :-( o Remove `struct link'::ccp (a temporary hack). It turns out that IpStartOutput() calls link_Output() and link_Output() incorrectly calls StartOutput() (really modem_StartOutput) requiring the ccp knowledge so that it can call IpStartOutput()... The end result is that the whole IP output queue gets dumped into the modem output queue and a pile of physical writes are done prematurely. This makes the (original) code in main() actually work in that it would not bother selecting() on the tun descriptor when our modem queue length was 20 or greater. Instead, we now make that decision based on the overall queue length. This will need improvement later. Revision Changes Path 1.1.2.16 +22 -9 src/usr.sbin/ppp/Attic/bundle.c 1.30.2.13 +24 -24 src/usr.sbin/ppp/ccp.c 1.14.2.11 +7 -9 src/usr.sbin/ppp/ccp.h 1.44.2.11 +2 -2 src/usr.sbin/ppp/chat.c 1.131.2.29 +11 -22 src/usr.sbin/ppp/command.c 1.1.2.13 +12 -12 src/usr.sbin/ppp/Attic/datalink.c 1.1.2.8 +2 -2 src/usr.sbin/ppp/Attic/datalink.h 1.6.4.6 +17 -16 src/usr.sbin/ppp/deflate.c 1.1.2.7 +3 -3 src/usr.sbin/ppp/Attic/descriptor.h 1.27.2.14 +2 -2 src/usr.sbin/ppp/fsm.c 1.28.2.14 +2 -5 src/usr.sbin/ppp/hdlc.c 1.38.2.8 +9 -14 src/usr.sbin/ppp/ip.c 1.8.2.4 +3 -2 src/usr.sbin/ppp/ip.h 1.1.2.8 +3 -4 src/usr.sbin/ppp/Attic/link.c 1.1.2.6 +3 -5 src/usr.sbin/ppp/Attic/link.h 1.121.2.28 +16 -25 src/usr.sbin/ppp/main.c 1.77.2.25 +6 -6 src/usr.sbin/ppp/modem.c 1.16.2.10 +2 -2 src/usr.sbin/ppp/modem.h 1.1.2.12 +4 -3 src/usr.sbin/ppp/Attic/physical.c 1.1.2.12 +3 -2 src/usr.sbin/ppp/Attic/physical.h 1.97.2.1 +7 -7 src/usr.sbin/ppp/ppp.8 1.20.2.4 +13 -12 src/usr.sbin/ppp/pred.c 1.1.2.8 +5 -3 src/usr.sbin/ppp/Attic/prompt.c 1.16.2.8 +2 -2 src/usr.sbin/ppp/server.c 1.16.2.5 +10 -3 src/usr.sbin/ppp/vjcomp.c 1.5.4.3 +2 -2 src/usr.sbin/ppp/vjcomp.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message