OpenBSD CVS

CVS log for src/usr.bin/systat/if.c


[BACK] Up to [local] / src / usr.bin / systat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 29 06:39:23 2021 UTC (2 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

local copy of roundup() means no more sys/param.h

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jan 18 00:49:09 2021 UTC (3 years, 4 months ago) by mortimer
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Move defiition of sum variable from header file to avoid issues with
-fno-common

ok deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 4 01:39:44 2019 UTC (4 years, 10 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

set ierrs and oerrs titles when changing fails/drops/errs, not ierrs twice

Revision 1.24 / (download) - annotate - [select for diffs], Mon Mar 4 21:27:35 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.23: +107 -7 lines
Diff to previous 1.23 (colored)

expose the interface queue drops in the interface view

by default qdrops and errors are combined in a number of failures.
the qdrops and errors can be viewed separately by using 'd' and 'e'
respectively, or the combined view again with 'f'.

ok claudio@ deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 16 00:03:37 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

first batch of programs adapting to the namespace cleanup
(pfvar.h nameser.h proc.h ucred.h)
ok guenther millert, and some review from doug as well.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 8 04:10:04 2014 UTC (9 years, 7 months ago) by doug
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

userland reallocarray audit.

Replace malloc() and realloc() calls that may have integer overflow in the
multiplication of the size argument with reallocarray().

ok deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 23 03:46:16 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

The second level of the CTL_NET sysctl is a PF_*, not an AF_*

inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 5 07:35:32 2011 UTC (13 years, 1 month ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, 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.19: +23 -5 lines
Diff to previous 1.19 (colored)

Add support to display numbers with thousands separators
and to switch the ifstat view to Bits/s.
This allows us to see live network throughput in units
like MBit/s, which is more practical.
OK sthen@, manpage OK jmc@, "put it in" deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 2 06:48:17 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.18: +11 -13 lines
Diff to previous 1.18 (colored)

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jul 5 14:31:44 2010 UTC (13 years, 10 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Add prototype and remove unused variable.
ok canacar@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 23 01:51:41 2009 UTC (14 years, 5 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.16: +14 -2 lines
Diff to previous 1.16 (colored)

Properly handle interfaces deleted from the middle of the list.
Reported by deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 13 23:45:35 2009 UTC (14 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +3 -15 lines
Diff to previous 1.15 (colored)

there are louder and louder moans about the inability to see packet
rates at the same time as interrupt counts, so sneak them into the
bottom corner of the vmstat screen
ok dlg

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 26 06:39:47 2009 UTC (14 years, 10 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

- include two missing headers in if.c
- add missing parenthesis in nfs.c

ok canacar@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 25 15:53:12 2009 UTC (14 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

Check RTM_VERSION even on sysctl data.
Tested and OK sthen@, OK henning@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 3 20:29:21 2009 UTC (15 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.12: +37 -11 lines
Diff to previous 1.12 (colored)

Show interface description names in "systat if 1"; some help from canacar
sthen likes it

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 12 22:26:01 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.11: +164 -103 lines
Diff to previous 1.11 (colored)

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 5 20:31:34 2007 UTC (16 years, 8 months ago) by mk
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.10: +9 -9 lines
Diff to previous 1.10 (colored)

Cope with if counters being u_int64_t now here, too.

ok claudio

Revision 1.10 / (download) - annotate - [select for diffs], Sat Apr 14 23:07:44 2007 UTC (17 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

naptime is already extern in extern.h, don't do it again
found by mike erdely

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 25 18:21:24 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

use the 1 line load line from 'systat vm' on all the other displays, giving
them more room.  much cleaner, and it is less code too; ok deanna

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 28 19:21:15 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

add additional link states to report the half duplex / full duplex
state, if known by the driver. this is required to check the full
duplex state without depending on the ifmedia ioctl which can't be
called in the kernel without process context.

ok henning@, brad@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 2 08:16:51 2006 UTC (17 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.6: +30 -7 lines
Diff to previous 1.6 (colored)

Show interface state and link state in ifstat output. Idea and OK dlg@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 31 18:19:44 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

spacing

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 31 04:10:59 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.4: +8 -5 lines
Diff to previous 1.4 (colored)

fairly simple cleanup, lots of testing done

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 10 23:29:41 2006 UTC (18 years, 4 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.3: +6 -3 lines
Diff to previous 1.3 (colored)

fix the time view of the interface stats so that is shows the average
over the refresh interval (like the manpage says it should) instead of
the total.

ok markus@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Dec 13 09:52:20 2005 UTC (18 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.2: +6 -5 lines
Diff to previous 1.2 (colored)

sdl->sdl_data does not contain a nul terminated string, so use bcopy and
terminate it manually rather than use strlcpy to get the interface name.
fixes output on my sparc and sparc64s.

ok markus@ deraadt@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 25 23:08:13 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.1: +14 -13 lines
Diff to previous 1.1 (colored)

fix on alpha.  the lack of BWX by default, and assumptions of alignment
keep biting us hard for structures that happen to have been plopped at
unaligned objects.  terrible decisions made at DEC ages ago, and compounded
by terrible gcc decisions cause us to make workarounds all the time.
showed by markus, found by David Berghoff

Revision 1.1 / (download) - annotate - [select for diffs], Tue Nov 16 09:52:33 2004 UTC (19 years, 6 months ago) by markus
Branch: MAIN

print network interface stats with 'systat ifstat'; ok deraadt, mickey

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.