summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/throughput.c
Commit message (Collapse)AuthorAgeFilesLines
* Change printf formats %q[du] -> %ll[du]brian1999-08-091-8/+8
|
* If the clock is put back, ensure that we don't end up dividing bybrian1999-08-061-1/+10
| | | | zero when calculating our throughput
* o Obsolete the undocumented ``set weight'' command.brian1999-08-051-34/+101
| | | | | | | | | | | | | | | | | | | | | | | o If we're using RADIUS and the RADIUS mtu is less than our peers mru/mrru, reduce our mtu to this value for NetBSD too. o Make struct throughput's sample period dynamic and tweak the ppp version number to reflect the extra stuff being passed through the local domain socket as a result (MP mode). o Measure the current throughput based on the number of samples actually taken rather than on the full sample period. o Keep the throughput statisics persistent while being passed to another ppp invocation through the local domain socket. o When showing throughput statistics after the timer has stopped, use the stopped time for overall calculations, not the current time. Also show the stopped time and how long the current throughput has been sampled for. o Use time() consistently in throughput.c o Tighten up the ``show bundle'' output. o Introduce the ``set bandwidth'' command. o Rewrite the ``set autoload'' command. It now takes three arguments and works based on a rolling bundle throughput average compared against the theoretical bundle bandwidth over a given period (read: it's now functional).
* o Redesign the layering mechanism and make the aliasing code part ofbrian1999-05-081-16/+16
| | | | | | | | | | | | | | | | | | | | | the layering. We now ``stack'' layers as soon as we open the device (when we figure out what we're dealing with). A static set of `dispatch' routines are also declared for dealing with incoming packets after they've been `pulled' up through the stacked layers. Physical devices are now assigned handlers based on the device type when they're opened. For the moment there are three device types; ttys, execs and tcps. o Increment version number to 2.2 o Make an entry in [uw]tmp for non-tty -direct invocations (after pap/chap authentication). o Make throughput counters quad_t's o Account for the absolute number of mbuf malloc()s and free()s in ``show mem''. o ``show modem'' becomes ``show physical''.
* Add the ``clear'' function.brian1998-06-121-1/+42
| | | | Mostly submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
* Remove '\n' from `show throughput'. ctime() already doesbrian1998-06-121-3/+3
| | | | a linefeed.
* Show the time that we reached maximum throughput.brian1998-06-091-6/+10
| | | | Submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
* MFMP: Make ppp multilink capable.brian1998-05-211-31/+36
| | | | See the file README.changes, and re-read the man page.
* Add (BSD) copyright headers.brian1997-12-211-2/+26
|
* Display connect time as 0 if we've never beenbrian1997-11-261-3/+3
| | | | | connected. Pointed out by: Jeff Kletsky <Jeff@wagsky.com>
* Fix prototypes.brian1997-11-221-5/+6
| | | | | | | | | | | | | | Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
* Add throughput logging (disabled by default).brian1997-11-181-0/+126
Use "enable throughput" to see modem & IPCP throughput. Removed an extraneous prompt()
OpenPOWER on IntegriCloud