From owner-cvs-all Sun May 24 19:27:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA28014 for cvs-all-outgoing; Sun, 24 May 1998 19:27:52 -0700 (PDT) (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 TAA28009; Sun, 24 May 1998 19:27:51 -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 TAA27841; Sun, 24 May 1998 19:22:40 -0700 (PDT) Date: Sun, 24 May 1998 19:22:40 -0700 (PDT) Message-Id: <199805250222.TAA27841@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 main.c modem.c mp.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk brian 1998/05/24 19:22:40 PDT Modified files: usr.sbin/ppp bundle.c datalink.c main.c modem.c mp.c Log: o Don't try to transfer tty device descriptors as there's no way of transferring session rights with them. Instead, create two `/bin/cat' processes. A new child is spawned and disassociated from the terminal and the parent, which continues with the rest of the ppp process. Meanwhile, the parent spawns another child, and both the parent and child exec the `/bin/cat' commands with the appropriate descriptors. This way, the session is owned by the parent, and the tty is held open. o Close LCPs that have done a TLF and are now in ST_STOPPED before calling Down. This prevents them from trying to come back up again after the peer has shut them down (it seems a bit strange that the rfc says that a Down in ST_STOPPED will cause a TLS etc). o Don't try to set the physical link name pointer when we're receiving and renaming a datalink. The physical hasn't been created yet, and as it happens, the garbage physical pointer happens to be the value of another physical - so we're pointing that other physical name at ourselves. yeuck. o Re-arrange the order of things in main (DoLoop()). We now handle signals only after the select and not before the UpdateSet. It's possible that either a signal (FSM timeout) or a descriptor_Read() brings a link down, after which we'd better tidy up any dead direct and 1off descriptors before calling UpdateSet() again. o Mention when we detect a PPP packet when we see one before the link is up (then start LCP as before). Revision Changes Path 1.7 +103 -13 src/usr.sbin/ppp/bundle.c 1.5 +8 -4 src/usr.sbin/ppp/datalink.c 1.125 +8 -8 src/usr.sbin/ppp/main.c 1.84 +6 -2 src/usr.sbin/ppp/modem.c 1.6 +3 -5 src/usr.sbin/ppp/mp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message