From owner-freebsd-hackers Tue Sep 2 22:40:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA19537 for hackers-outgoing; Tue, 2 Sep 1997 22:40:43 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA19531 for ; Tue, 2 Sep 1997 22:40:40 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.6/8.8.6) with SMTP id WAA17516; Tue, 2 Sep 1997 22:40:21 -0700 (PDT) Date: Tue, 2 Sep 1997 22:40:20 -0700 (PDT) From: Jaye Mathisen To: Greg Lehey cc: hackers@FreeBSD.ORG Subject: Re: Anyway to get connect speed with usermode ppp/tun0 device? In-Reply-To: <19970903142319.54464@lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk No, the CONNECT string from when ppp parses up the output of the CHAT script... ie, connect 31200, v.34/ARQ, etc. Not the device speed. On Wed, 3 Sep 1997, Greg Lehey wrote: > On Tue, Sep 02, 1997 at 09:11:58PM -0700, Jaye Mathisen wrote: > > > > 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; > lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl > -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin > -nokerninfo -extproc > iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel ignbrk > -brkint -inpck -ignpar -parmrk > oflags: -opost -onlcr -oxtabs > cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb crtscts -dsrflow > -dtrflow -mdmbuf > cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; > eol2 = ; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; > min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; > stop = ^S; susp = ^Z; time = 0; werase = ^W; > > The speed is specified as 'baud'; in fact, it's bit per second. > > Greg >