From owner-freebsd-hackers Tue Sep 2 21:54:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA17197 for hackers-outgoing; Tue, 2 Sep 1997 21:54:04 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA17186 for ; Tue, 2 Sep 1997 21:53:59 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id OAA22076; Wed, 3 Sep 1997 14:53:32 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id OAA16104; Wed, 3 Sep 1997 14:23:19 +0930 (CST) Message-ID: <19970903142319.54464@lemis.com> Date: Wed, 3 Sep 1997 14:23:19 +0930 From: Greg Lehey To: Jaye Mathisen Cc: hackers@FreeBSD.ORG Subject: Re: Anyway to get connect speed with usermode ppp/tun0 device? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Jaye Mathisen on Tue, Sep 02, 1997 at 09:11:58PM -0700 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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