From owner-freebsd-hackers Wed Sep 3 09:51:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA22792 for hackers-outgoing; Wed, 3 Sep 1997 09:51:54 -0700 (PDT) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA22781 for ; Wed, 3 Sep 1997 09:51:47 -0700 (PDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id KAA27597; Wed, 3 Sep 1997 10:51:13 -0600 (MDT) Date: Wed, 3 Sep 1997 10:51:13 -0600 (MDT) Message-Id: <199709031651.KAA27597@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Greg Lehey Cc: Jaye Mathisen , hackers@freebsd.org Subject: Re: Anyway to get connect speed with usermode ppp/tun0 device? In-Reply-To: <19970903142319.54464@lemis.com> References: <19970903142319.54464@lemis.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > PPP isn't my cup of tea, I'm thinking that something oughta be able > > to be done inside HdlcDetect(), but perhaps there's a better choice... > > > > Any tips or ideas appreciated. > > # stty -f /dev/cuaa1 -a > speed 38400 baud; 0 rows; 0 columns; This tells you how fast the computer<->modem connection is, but if you hard-code it at a speed, it won't tell you the 'CONNECT XXXXX' speed, which can vary depending on line conditions. Nate