OpenBSD CVS

CVS log for src/sbin/pfctl/Attic/pfctl_qstats.c


[BACK] Up to [local] / src / sbin / pfctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34, Sat Apr 19 14:22:32 2014 UTC (10 years, 1 month ago) by henning
Branch: MAIN
CVS Tags: HEAD
Changes since 1.33: +1 -1 lines
FILE REMOVED

remove altq bits here, too
(i was convinced i committed that yesterday already, hrm)

Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 12 12:16:12 2013 UTC (10 years, 8 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.32: +14 -14 lines
Diff to previous 1.32 (colored)

config bits for the bandwidth shaping part of the new queueing subsystem
syntax worked out with many in ljubljana using a whiteboard, testing &
looking over by many, ok phessler sthen

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 4 22:49:03 2011 UTC (12 years, 11 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

tsc tsc, no waikiki for me. copyright statement without year. 2003 it was.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 15 02:16:35 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

specifying int instead of just unsigned is better style

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 27 21:47:32 2004 UTC (20 years, 1 month ago) by kjc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored)

make "pfctl -vvsq" to print "No queue in use" and exit when there is no
queue to show the state.

requested by "Alexey E. Suslikov" <cruel@texnika.com.ua>

ok henning@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 15 15:25:44 2004 UTC (20 years, 3 months ago) by dhartmei
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.28: +13 -13 lines
Diff to previous 1.28 (colored)

cast %llu arguments to unsigned long long, from Max Laier,
ok henning@ cedric@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 19 21:37:01 2004 UTC (20 years, 3 months ago) by cedric
Branch: MAIN
Changes since 1.27: +15 -7 lines
Diff to previous 1.27 (colored)

Makes pfctl -ss and pfctl -sq use optional -i argument.
ok dhartmei@ markus@ mcbride@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 10 17:53:37 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.26: +6 -5 lines
Diff to previous 1.26 (colored)

KNF

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 5 18:06:12 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

pfctl_update_qstats() returns -1 on error and the # of queues otehrwise
fix a check of the return value to cope woth that
inspired by PR3675 from Marc Huber <Marc.Huber@web.de>, fixed slightly
different.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jan 29 01:25:13 2004 UTC (20 years, 4 months ago) by mcbride
Branch: MAIN
Changes since 1.24: +7 -3 lines
Diff to previous 1.24 (colored)

Clean up 'pfctl -s all' output.

ok deraadt@ henning@

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 31 09:46:08 2003 UTC (20 years, 10 months ago) by kjc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +10 -1 lines
Diff to previous 1.23 (colored)

remove the old tree when we find a new ticket.
this fixes printing obsolete (non-existent) queues.

ok henning@

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 21 20:57:45 2003 UTC (20 years, 11 months ago) by dhartmei
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

fflush(stdout) in pfctl -vvsq endless output.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 20 16:53:48 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

some cleanings recommended by lint; dhartmei ok

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 6 17:53:05 2003 UTC (21 years ago) by henning
Branch: MAIN
Changes since 1.20: +12 -26 lines
Diff to previous 1.20 (colored)

simplify license. pfctl_altq.c with kenjiro's permission of course.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 19 00:22:15 2003 UTC (21 years ago) by camield
Branch: MAIN
Changes since 1.19: +84 -77 lines
Diff to previous 1.19 (colored)

Use a decaying average for smoother rate estimates.

ok henning dhartmei

Revision 1.19 / (download) - annotate - [select for diffs], Sun May 18 20:32:36 2003 UTC (21 years ago) by henning
Branch: MAIN
Changes since 1.18: +11 -11 lines
Diff to previous 1.18 (colored)

indent here in the same way as in -vsr for consistency

Revision 1.18 / (download) - annotate - [select for diffs], Tue Apr 15 11:51:42 2003 UTC (21 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.17: +31 -1 lines
Diff to previous 1.17 (colored)

display basic hfsc stats

Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 15 11:29:24 2003 UTC (21 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

pass down the unparsed queue opts (struct node_queue_opt) to
print_altq/print_hfsc -> print_hfsc_opts and extract struct node_hfsc_sc
there for each service curve and pass those down to print_hfsc_sc. now
bandwidth specifications in the service curves are printed correct in the
case of a queue belonging to more than one interface/parent queue, the
parent queues having different bandwidths and the bandwith on teh service
curve beeing specified in percent.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 14 14:50:46 2003 UTC (21 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

let print_altq and print_queue take a struct node_queue_bw parameter instead
of dintinct bw_percent

Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 11 11:53:28 2003 UTC (21 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

fix format strings in debugging output, qid is unsigned

ok cedric@ mcbride@

Revision 1.14 / (download) - annotate - [select for diffs], Sat Mar 8 14:26:31 2003 UTC (21 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.13: +12 -7 lines
Diff to previous 1.13 (colored)

inlcude queue interals in -gsr and -gsq output; will make debugging easier.

ok cedric@ pb@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 2 23:37:24 2003 UTC (21 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

when printing queues at load time that have bandwidth specified in percent,
print the bandwidth in percent instead of the calculated absolute value.
if a queue belongs to more than one interface and they have different
bandwidth the calculated absolute is of course different per interface.
previously the first calculated absolute value was shown; what of course is
incorrect on the second interface. note that only the print was wrong, the
correct values were passed to the kernel.

ok theo daniel

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 27 19:37:46 2003 UTC (21 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

bit KNF

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 24 11:20:46 2003 UTC (21 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.10: +13 -1 lines
Diff to previous 1.10 (colored)

pfctl -vvsq shows bandwidth and packets/s for PRIQ now too

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 24 11:11:17 2003 UTC (21 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.9: +23 -2 lines
Diff to previous 1.9 (colored)

let pfctl -vvsq loop and display measured bandwidth and packets/s per queue.
cbq only for now.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 24 10:22:11 2003 UTC (21 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.8: +21 -13 lines
Diff to previous 1.8 (colored)

tune internal APIs a bit

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 24 08:54:09 2003 UTC (21 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.7: +36 -1 lines
Diff to previous 1.7 (colored)

bring in 3 yet unused helper functions before I lose 'em again

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 10 08:03:28 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.6: +4 -9 lines
Diff to previous 1.6 (colored)

no return after err(3), errx -> err after calloc failure

andrushock at korovino.net via dhartmei@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 10 08:00:23 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.5: +1 -5 lines
Diff to previous 1.5 (colored)

print queue length for PRIQ, works now

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jan 10 07:59:18 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.4: +16 -12 lines
Diff to previous 1.4 (colored)

fix thinko

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 9 18:34:29 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.3: +3 -4 lines
Diff to previous 1.3 (colored)

use a verbose flag in pfctl_show_altq instead of carrying around opts from
pfctl.c, and get rid of the #include "pfctl_parser.h"

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 9 18:27:41 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

zap unneeded #include <errno.h> as seen by both of us while discussing
#include stuff with dhartmei@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 9 18:24:42 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN
Changes since 1.1: +19 -2 lines
Diff to previous 1.1 (colored)

support PRIQ in queue statistics

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jan 9 17:33:20 2003 UTC (21 years, 5 months ago) by henning
Branch: MAIN

first attack at pfctl queue statistics, to be displayed with pfctl -vsq

This commit is dedicated to the cute KLM girls who made part of this
possible with giving me a seat in the plane where you actually have enough
place to hack. Thanks, girls.

ok markus@ dhartmei@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.