The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / netstat

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 12 12:07:23 2023 UTC (22 months, 4 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +14 -16 lines
Pull up following revision(s) (requested by mrg in ticket #42):

	usr.bin/netstat/if.c: revision 1.109

if not given an interface to monitor by default, pick the one
with the most bytes in/out the first time and keep using it.

in addition to picking the most likely intersting interface,
this actually fixes a bug where interfaces coming/going in
the middle of eg, "netstat -b -w 1", may end up showing the
data for another interface on any output line (including the
the header declaring the interface!)

Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Dec 28 18:34:33 2022 UTC (23 months, 1 week ago) by mrg
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +14 -16 lines
if not given an interface to monitor by default, pick the one
with the most bytes in/out the first time and keep using it.

in addition to picking the most likely intersting interface,
this actually fixes a bug where interfaces coming/going in
the middle of eg, "netstat -b -w 1", may end up showing the
data for another interface on any output line (including the
the header declaring the interface!)

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Dec 12 05:09:33 2022 UTC (23 months, 4 weeks ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-10-base
Branch point for: netbsd-10
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +4 -5 lines
Use warn() instead of warnx() and simplify.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Sat Nov 19 14:42:35 2022 UTC (2 years ago) by taca
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -3 lines
netstat/if.c: Fix error message with "-w" option.

Now ifq_drops is 64bit unsigned integer.

No description in src/doc/CHANGES?

Revision 1.106: download - view: text, markup, annotated - select for diffs
Mon Oct 24 08:11:25 2022 UTC (2 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +4 -5 lines
Make ifq_drops in struct ifqueue and struct ifaltq 64 bit.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Sep 21 07:59:19 2022 UTC (2 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +11 -11 lines
s/u_quad_t/uint64_t/. No functional change.

Revision 1.94.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 12 14:29:19 2022 UTC (2 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.94.4.1: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.4.1: +109 -64 lines
Pull up the following, requested by msaitoh in ticket #1762:

	usr.bin/netstat/atalk.c		1.18,1.20-1.21
	usr.bin/netstat/bpf.c		1.16 via patch
	usr.bin/netstat/fast_ipsec.c	1.24 via patch
	usr.bin/netstat/if.c		1.97-1.99,1.101-1.104 via patch
	usr.bin/netstat/inet.c		1.111,1.115-1.116 via patch
	usr.bin/netstat/inet6.c		1.70,1.74-1.75,1.80-1.81 via patch
	usr.bin/netstat/main.c		1.100,1.102-1.103
	usr.bin/netstat/mbuf.c		1.34-1.35
	usr.bin/netstat/mroute.c	1.26-1.27
	usr.bin/netstat/mroute6.c	1.16
	usr.bin/netstat/netstat.h	1.52-1.53
	usr.bin/netstat/pfkey.c		1.4-1.5 via patch
	usr.bin/netstat/pfsync.c	1.4-1.5 via patch
	usr.bin/netstat/route.c		1.87-1.88
	usr.bin/netstat/unix.c		1.36-1.37
	usr.bin/netstat/vtw.c		1.11,1.13

- Add names of a few more ICMPv6 messages.
  Also make the array be explicitly 256 entries long.
- sprintf() -> snprintf(), and adjust a buffer size to avoid any
  potential for overflow.
- Add missing {IP,IP6}_STAT_NOIPSEC to netstat.
- Don't show any of the completely and utterly undocumented VTW info
  if the feature isn't enabled.
- Print oqdrops correctly.
- netstat.1: Add various xrefs present in the body to "See Also".
- Limit maximum owner name to appease gcc.
- KNF. Style fixes.

Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 12 14:23:41 2022 UTC (2 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +109 -64 lines
Pull up the following, requested by msaitoh in ticket #1522:

	usr.bin/netstat/atalk.c		1.18,1.20-1.21
	usr.bin/netstat/bpf.c		1.16 via patch
	usr.bin/netstat/fast_ipsec.c	1.24
	usr.bin/netstat/if.c		1.97-1.99,1.101-1.104 via patch
	usr.bin/netstat/inet.c		1.111,1.115-1.116 via patch
	usr.bin/netstat/inet6.c		1.74-1.75,1.80-1.81 via patch
	usr.bin/netstat/main.c		1.100-1.103
	usr.bin/netstat/mbuf.c		1.35
	usr.bin/netstat/mroute.c	1.26-1.27
	usr.bin/netstat/mroute6.c	1.16
	usr.bin/netstat/netstat.h	1.52-1.53
	usr.bin/netstat/pfkey.c		1.4-1.5 via patch
	usr.bin/netstat/pfsync.c	1.4-1.5 via patch
	usr.bin/netstat/route.c		1.86-1.88
	usr.bin/netstat/unix.c		1.36-1.37
	usr.bin/netstat/vtw.c		1.11,1.13

- sprintf() -> snprintf(), and adjust a buffer size to avoid any
  potential for overflow.
- Fix netstat -rs to print it correctly.
- Add missing {IP,IP6}_STAT_NOIPSEC to netstat.
- Don't show any of the completely and utterly undocumented VTW info
  if the feature isn't enabled.
- Print oqdrops correctly.
- Remove Network ATM soft intr queue reporting, we don't have that
  in the kernel anymore.
- netstat.1: Add various xrefs present in the body to "See Also".
- KNF. Style fixes.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Sep 12 02:25:44 2022 UTC (2 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +6 -4 lines
Print oqdrops correctly in continuous display mode using with kvm.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Sep 11 23:52:20 2022 UTC (2 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3 lines
Fix printing current output drop packet count in continuous display mode.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Mon Sep 5 04:52:53 2022 UTC (2 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -20 lines
G.C. No functional change.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Sep 5 02:26:22 2022 UTC (2 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +87 -23 lines
Print oqdrops correctly.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Sep 5 00:18:25 2022 UTC (2 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +19 -23 lines
Get if_data correctly when kvm is used.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Sep 2 06:25:43 2022 UTC (2 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +10 -14 lines
KNF. No functional change.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Sep 1 10:10:20 2022 UTC (2 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +27 -27 lines
KNF. No functional change.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Aug 18 12:25:32 2022 UTC (2 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +6 -6 lines
Use NULL instead of 0.

Revision 1.94.12.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:17 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.94.12.1: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.12.1: +47 -19 lines
Merge changes from current as of 20200406

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Feb 2 03:41:12 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +47 -19 lines
Update for per-cpu interface statistics.

Revision 1.94.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:22 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +18 -13 lines
Sync with HEAD

Revision 1.94.10.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:14 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +18 -13 lines
Sync with HEAD

Revision 1.94.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 26 23:43:31 2018 UTC (6 years, 4 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +18 -13 lines
Pull up following revision(s) (requested by msaitoh in ticket #939):
	usr.bin/netstat/if.c: revision 1.95
Print iqdrops, too. This change also fixes a bug that Odrops prints
iqdrops when kvm read failed.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Jul 11 07:46:20 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +18 -13 lines
 Print iqdrops, too. This change also fixes a bug that Odrops prints
iqdrops when kvm read failed.

Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:15 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +21 -9 lines
Sync with HEAD

Revision 1.89.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:58:05 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.89.2.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.2.1: +37 -26 lines
Sync with HEAD

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Feb 23 07:57:10 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3 lines
Remove mkludge stuffs

For unknown reasons, IPv6 multicast addresses are linked to a first
IPv6 address assigned to an interface. Due to the design, when removing
a first address having multicast addresses, we need to save them to
somewhere and later restore them once a new IPv6 address is activated.
mkludge stuffs support the operations.

This change links multicast addresses to an interface directly and
throws the kludge away.

Note that as usual some obsolete member variables remain for kvm(3)
users. And also sysctl net.inet6.multicast_kludge remains to avoid
breaking old ifmcstat.

TODO: currently ifnet has a list of in6_multi but obviously the list
should be protocol independent. Provide a common structure (if_multi
or something) to handle in6_multi and in_multi together as well as
ifaddr does for in_ifaddr and in6_ifaddr.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Jan 22 04:52:04 2017 UTC (7 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +20 -10 lines
re-do the previous to avoid malloc/free on the same size every iteration.

with this, or the previous, 'netstat -b 1' no longer leaks memory in
-current (or any older release using sysctl for this.)

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Jan 22 04:26:31 2017 UTC (7 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +4 -2 lines
sprinkle free

Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Jan 11 01:25:05 2017 UTC (7 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +18 -19 lines
Fix showing multicast addresses of !IFF_UP interfaces

netstat appends '*' to the name of an interface without IFF_UP, so
if_nametoindex which is used in mc_print fails. mc_print needs just
an interface index so pass it instead of a tweaked interface name.

Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:58 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +29 -15 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Nov 24 00:05:13 2016 UTC (8 years ago) by dholland
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +29 -15 lines
Fix "sidewaysintpr", the thing that prints interface statistics in a
loop, to use signals properly. There are two copies of this code; one
uses kvm and the other uses sysctls. One copy had been updated to use
sigset_t and sigsuspend; the other was using vintage sigpause(). Sync
up the code so both use sigpause. Also, use sig_atomic_t, and block
SIGALRM when not waiting for it to avoid a small and unlikely but real
race.

Since the non-modernized copy of the code *had* for some been
modernized to use setitimer instead of just alarm(), propagate that
change to the other copy.

These copies could share more logic than they do.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Jul 14 20:38:20 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +8 -11 lines
more XXX removal.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Thu Jul 14 20:34:36 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +8 -10 lines
XXX: removal

Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Jul 14 19:39:41 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
remove __P

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Jul 14 18:58:26 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +50 -82 lines
dedup

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Jul 14 18:19:11 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +117 -19 lines
use sysctl to print multicast addresses

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jul 13 22:01:12 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +57 -39 lines
fix sysctl based interface printing, and annotate where we should add the
missing multicast printing code.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Feb 29 18:21:15 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
PR/50872: David Binderman: Use logical and instead of arithmetic

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Sep 20 00:30:04 2015 UTC (9 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +28 -6 lines
query the window size and use it instead of assuming 24 lines.
now the header isn't re-printed a lot of times in tall windows.

Revision 1.79.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 8 11:47:11 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.79.4.1: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.4.1: +6 -17 lines
Pull up following revision(s) (requested by prlw1 in ticket #395):
	sbin/route/rtutil.c: revision 1.4
	sbin/route/rtutil.h: revision 1.3
	usr.bin/netstat/if.c: revision 1.81
make netname4 match the netname6 signature avoiding a NULL pointer.
adjust to the netname4 prototype.

Revision 1.79.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 8 11:01:01 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +8 -7 lines
Pull up following revision(s) (requested by prlw1 in ticket #390):
	usr.bin/netstat/mroute.c: revision 1.25
	usr.bin/netstat/Makefile: revision 1.40
	sbin/route/prog_ops.h: revision 1.3
	sbin/route/rtutil.c: revision 1.1
	sbin/route/rtutil.h: revision 1.1
	usr.bin/netstat/mroute6.c: revision 1.15
	sbin/route/extern.h: revision 1.15
	usr.bin/netstat/show.c: file removal
	usr.bin/netstat/main.c: revision 1.93
	usr.bin/netstat/route.c: revision 1.83
	usr.bin/netstat/netstat.h: revision 1.51
	distrib/utils/x_route/Makefile: revision 1.18
	sbin/route/show.c: revision 1.46
	usr.bin/netstat/if.c: revision 1.80
	sbin/route/route.c: revision 1.145
	sbin/route/Makefile: revision 1.26
Factor out the netstat route printing code and use it here. There is no
point in having 2 different copies; fixes PR/49371

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Jan 7 22:43:01 2015 UTC (9 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +6 -17 lines
adjust to the netname4 prototype.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Nov 6 21:30:09 2014 UTC (10 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +8 -7 lines
use the common code from route.c

Revision 1.74.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:01 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.74.2.2: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.2.2: +5 -19 lines
Rebase to HEAD as of a few days ago.

Revision 1.72.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:42:46 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.72.2.2: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.2: +7 -24 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Oct 19 15:56:06 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -4 lines
use correct function and symbolic constants

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Oct 19 00:28:38 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -24 lines
use new scopeid functions

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Oct 18 20:26:45 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +11 -8 lines
- avoid pointer gymnastics
- remove unused variables

Revision 1.74.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:29:01 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.74.2.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.2.1: +2 -5 lines
resync from head

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Mar 1 18:26:11 2013 UTC (11 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +2 -5 lines
Retire OSI network stack. OK core@

Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:58 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +6 -6 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:24 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.1: +6 -6 lines
sync with head

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 24 03:39:17 2012 UTC (12 years, 1 month ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +6 -6 lines
Pull up following revision(s) (requested by msaitoh in ticket #632):
	usr.bin/netstat/if.c: revision 1.75
Line up total numbers again (for -b case and -X case).

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Oct 19 19:50:19 2012 UTC (12 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +6 -6 lines
Line up total numbers again (for -b case and -X case).

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:37 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +30 -34 lines
sync with head

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Mar 20 20:34:58 2012 UTC (12 years, 8 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -11 lines
Use C89 function definitions

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Feb 12 19:11:33 2012 UTC (12 years, 10 months ago) by christos
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +27 -25 lines
PR/44889: Yamamoto Takashi: netstat -d option is broken (from Elad)

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Sep 16 15:39:27 2011 UTC (13 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
Use __dead

Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:20:11 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +4 -12 lines
Sync with HEAD

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Feb 4 14:31:23 2011 UTC (13 years, 10 months ago) by martin
Branches: MAIN
CVS tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -12 lines
Use RT_ROUNDUP() and friends from sys/route.h instead of homegrown
variants.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Dec 13 21:15:30 2010 UTC (14 years ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +7 -6 lines
Add netstat rump client.  For now, it always sets -X, i.e. will
use only sysctl and no kvm (implementing /dev/mem for a rump kernel
would probably not be hard, but still a non-zero effort).

Note: since there is absolutely no network activity in a fresh rump
kernel, rump.netstat usually displays exactly nothing when invoked
without parameters.  Arguments like -r, -bi, -p icmp etc. produce
more stuff.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Jul 9 07:04:30 2010 UTC (14 years, 5 months ago) by enami
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
Line up total numbers again.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Feb 24 11:00:27 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +57 -15 lines
Add -h, which makes output of bytes counts "humanized" (e.g. -bih)

(netstat had -h some 15 years ago, but since then it has been just
a fancy way of calling usage())

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Sep 27 18:19:18 2009 UTC (15 years, 2 months ago) by plunky
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
protecting sockaddr_in6 with -DINET6

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Sep 13 21:46:23 2009 UTC (15 years, 3 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +20 -20 lines
Use PRIu64 for printf'ing stuff.  Fixes build breakage on part-amd64
introduced in rev 1.64 (and reverts a partial fix provided in rev 1.65)

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Sep 13 19:04:29 2009 UTC (15 years, 3 months ago) by elad
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +16 -16 lines
Put some unsigned long long casts (as was in the original printing code).

Should fix build breakage noticed by pgoyette@ on current-users@:

    http://mail-index.netbsd.org/current-users/2009/09/13/msg010554.html

(sorry, don't have an amd64 anymore!)

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Sep 13 02:53:17 2009 UTC (15 years, 3 months ago) by elad
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +636 -228 lines
Checkin work in progress to make netstat use sysctl rather than kvm(3).

This commit mostly adds code written by Claudio Jeker for OpenBSD to
support sysctl in the interface printing parts (-i, -I, -w). The port has
been ported to NetBSD with tiny adjustments -- of course all bugs etc.
are mine.

Also add and document a -X flag to force sysctl usage. The documentation
notes this flag may be removed at any time and its presence should not be
relied on.

Some misc. comments/#ifdef changes/code snippet moves as well.

Please note that no functionality should change as the routing and
interface printing code is still not fully supported.

Mailing list reference:

    http://mail-index.netbsd.org/tech-userlevel/2009/09/09/msg002604.html

Revision 1.62.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:59 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +21 -21 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Apr 12 16:08:37 2009 UTC (15 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +21 -21 lines
Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare).
Fix probable bug with numeric printing of anon ports when using sysctl.

Revision 1.61.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:07 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +2 -27 lines
sync with head.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Apr 23 15:35:37 2008 UTC (16 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: jym-xensuspend
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -27 lines
netns is no longer in the tree; completely purge it from netstat(1).

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Aug 26 15:33:20 2006 UTC (18 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +8 -2 lines
Conditionalize XNS support.  No longer enabled.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:17:07 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +7 -7 lines
Sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun May 28 16:51:40 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
CVS tags: chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -7 lines
Make netstat use sysctl when dumping routing tables/stats.
Heavily based on similar code from Claudio Jeker (at OpenBSD).

While here, fix inet/inet6 sysctl stuff commited previously to
actually work, and some other nits to make netstat more sysctl
friendly.

One step closer to losing setgid kmem on this one...

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Aug 4 19:41:28 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Branch point for: chap-midi
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -2 lines
Added #include <kvm.h> since netstat.h, which is included too, needs it.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Nov 16 05:59:32 2004 UTC (20 years ago) by itojun
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -6 lines
NI_WITHSCOPEID was not picked up by IETF standardization process.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Nov 15 11:54:34 2003 UTC (21 years, 1 month ago) by ragge
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -4 lines
Use itimerval() instead of alarm() for interval displaying. This increases
accuracy on interval stats also on fast machines.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Aug 19 12:52:13 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -3 lines
correct strange indentation

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:15:18 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed May 14 23:36:32 2003 UTC (21 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -5 lines
use proper #ifdef to determine behavior (__KAME__)

Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Apr 15 08:07:10 2003 UTC (21 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
make char array bigger where it seems too small and may overrun.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Jun 19 23:38:59 2002 UTC (22 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
use macro to determine link-local multicast addr

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Jun 19 16:42:09 2002 UTC (22 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +11 -7 lines
identify kame scopeid hack with KAME_SCOPEID

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Jun 8 14:56:26 2002 UTC (22 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
make an auto const variable static.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Oct 6 18:48:30 2001 UTC (23 years, 2 months ago) by bjh21
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +17 -19 lines
Use getnameinfo() for printing link-layer addresses in netstat -i, rather
than doing it ourselves.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Apr 6 05:10:28 2001 UTC (23 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -4 lines
pedant changes for strcpy/sprintf.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Feb 19 23:03:50 2001 UTC (23 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
convert to use getprogname()

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Nov 14 23:00:57 2000 UTC (24 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +7 -3 lines
Print out IEEE1394 addresses with : .  Add a hack to limit the address
to 8 bytes.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 19 16:32:04 2000 UTC (24 years, 1 month ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +4 -4 lines
Pull up revision 1.45 (requested by he):
  Format string cleanup.

Revision 1.40.4.2: download - view: text, markup, annotated - select for diffs
Wed Oct 18 01:32:48 2000 UTC (24 years, 1 month ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.40.4.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.4.1: +4 -4 lines
Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Oct 11 14:46:14 2000 UTC (24 years, 2 months ago) by is
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4 lines
More format string cleanup by sommerfeld.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Jul 6 12:40:19 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -6 lines
more stats.  from kame

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 3 22:45:12 2000 UTC (24 years, 5 months ago) by thorpej
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -3 lines
Pull up rev. 1.41:
with -inv flag, do not truncate name of the interface (like "strip0").

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jul 3 05:06:43 2000 UTC (24 years, 5 months ago) by enami
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
Allocate one more byte for the asterisk after the name of interface.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jul 3 02:51:26 2000 UTC (24 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
Make gcc 2.96 (and maybe earlier) happier.  Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 2 09:07:23 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -3 lines
with -inv flag, do not truncate name of the interface (like "strip0").

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:26:55 2000 UTC (24 years, 7 months ago) by enami
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +11 -11 lines
Define members previously defined as u_long in struct iftot as u_quad_t.
Since these members are used to hold members defined now as u_quad_t
in struct if_data, u_long is quite not enough actually.
Without this, one night ttcp easily makes netstat to produce wrong output
like this:
enami@annex-2f-floor-244% netstat -ibw 1 -I tlp0
   tlp0 in            tlp0 out          total in           total out
     bytes               bytes             bytes               bytes
176333740607          176914940420         240082591           821282404
176093659136          176093659136                 0                   0
176093659136          176093659136                 0                   0

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Feb 9 13:57:06 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +18 -4 lines
use NI_WITHSCOPEID when printing multicast group with -inav.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Feb 5 17:39:22 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +13 -10 lines
print IPv6 scopeid on -inv.  with -in, scopeid is omitted due to insufficient
width.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Jan 25 16:07:13 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +6 -6 lines
better sync with #ifdef notdef part (in -i for AF_INET).

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Jan 25 15:56:55 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +15 -8 lines
don't truncate IPv4 entries on -i (with -v).  it is mainly for
"Network" column (13 digits, it will be 18 digits in maximum).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Jan 17 18:24:37 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +25 -2 lines
print IPv6 multicast group on -ia (-iav will avoid truncation)

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:37:06 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +113 -55 lines
Pull up to last week's -current.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Dec 13 15:22:55 1999 UTC (25 years ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +73 -35 lines
per-interface statistics.
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Nov 19 10:44:33 1999 UTC (25 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +58 -38 lines
Change printf formats for 64bit counters.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jul 1 18:40:35 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +25 -2 lines
make netstat IPv6-ready.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Mar 14 22:28:05 1999 UTC (25 years, 9 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +40 -29 lines
Make the damned columns line up.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 19 07:32:29 1999 UTC (25 years, 10 months ago) by cgd
Branches: netbsd-1-3
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +4 -2 lines
pull up rev 1.30 from trunk (mrg)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Jan 11 12:31:53 1999 UTC (25 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -2 lines
#ifndef SMALL changes.  saves 30k on the sparc

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Aug 25 20:59:39 1998 UTC (26 years, 3 months ago) by ross
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -3 lines
Add { and } to shut up egcs. Reformat the more questionable code.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Jul 12 03:20:14 1998 UTC (26 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +15 -9 lines
- KNF
- use err(3)
- sprintf/strcpy -> snprintf/strncpy
- change route.c:domask() to take a size_t of the buffer passed.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu May 14 22:48:49 1998 UTC (26 years, 7 months ago) by kml
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +16 -16 lines
Partial fix for PR kern/5435 -- changed netstat to use unsigned counters
instead of signed.  The rest of the fix will have to wait for 64-bit counters.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Mar 19 02:42:57 1998 UTC (26 years, 8 months ago) by kml
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +71 -26 lines
Add support for a '-b' option to provide byte counts in and out,
instead of just packet counts.  On the byte screens, errors and
collisions are not shown, since they are more packet count related.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Oct 19 05:49:58 1997 UTC (27 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -8 lines
fix up .Nm usage, getopt returns -1 not EOF

Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 17:21:28 1997 UTC (27 years, 6 months ago) by christos
Branches: SYN_cache_branch
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.1: +421 -0 lines
PR/3660: Dave Huang: Fix formatting misalignments in appletalk
PR/3659: Dave Huang: Fix PCB reporting in appletalk

Revision 1.24.2.1
Thu May 22 17:21:27 1997 UTC (27 years, 6 months ago) by christos
Branches: SYN_cache_branch
FILE REMOVED
Changes since revision 1.24: +0 -421 lines
file if.c was added on branch SYN_cache_branch on 1997-05-22 17:21:28 +0000

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu May 22 17:21:27 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
CVS tags: SYN_cache_cur_base
Branch point for: SYN_cache_branch
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4 lines
PR/3660: Dave Huang: Fix formatting misalignments in appletalk
PR/3659: Dave Huang: Fix PCB reporting in appletalk

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 7 06:58:18 1997 UTC (27 years, 8 months ago) by mikel
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -6 lines
more column alignment fixes

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:04:24 1997 UTC (27 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
PR/3451: Anders Hjalmarsson: Column alignment fixes after the netatalk addition.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Apr 3 04:46:45 1997 UTC (27 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +16 -11 lines
- netatalk additions
- printf format fixes
- minor prototype cleanups

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:51:25 1997 UTC (27 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -4 lines
Print Ethernet and FDDI addresses in the same format as ether_ntoa().
From Matt Thomas <matt@3am-software.com>

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Jan 2 07:21:41 1997 UTC (27 years, 11 months ago) by mellon
Branches: CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +2 -2 lines
imported from 44lite2

Revision 1.16.4.2: download - view: text, markup, annotated - select for diffs
Fri Jun 7 21:46:46 1996 UTC (28 years, 6 months ago) by thorpej
Branches: netbsd-1-2
CVS tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA
Diff to: previous 1.16.4.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.4.1: +5 -7 lines
Update from trunk:

Fix missing `)' in the sideways view of interfaces (i.e. netstat -w 1).
Bug pointed out by Chris G. Demetriou.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Jun 7 21:43:26 1996 UTC (28 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -7 lines
Fix missing `)' in the sideways view of interfaces (i.e. netstat -w 1).
Bug pointed out by Chris G. Demetriou.

Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 4 20:27:06 1996 UTC (28 years, 6 months ago) by cgd
Branches: netbsd-1-2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -4 lines
pull up changes from the trunk:
>if doing 'netstat -I <intf> -w <delay>', and netstat can't find an
>interface of the given name, print an error message and exit.
>This whole section of code needs to be re-thought, if interfaces
>can be dynamically added or removed.
and:
>bump MAXIF (the maximum number of interfaces for which information is kept,
>for 'netstat -w <delay>') to 100, from 10.  10 was definitely not sufficient
>for many hosts; 100 should be for most if not all.  This code really should
>dynamically allocate the information structures, based on the number of
>interfaces in the kernel, account for interfaces that are added or removed,
>etc., but given its current structure that would require substantial changes.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 4 20:22:23 1996 UTC (28 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
bump MAXIF (the maximum number of interfaces for which information is kept,
for 'netstat -w <delay>') to 100, from 10.  10 was definitely not sufficient
for many hosts; 100 should be for most if not all.  This code really should
dynamically allocate the information structures, based on the number of
interfaces in the kernel, account for interfaces that are added or removed,
etc., but given its current structure that would require substantial changes.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jun 4 20:09:03 1996 UTC (28 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -3 lines
if doing 'netstat -I <intf> -w <delay>', and netstat can't find an
interface of the given name, print an error message and exit.
This whole section of code needs to be re-thought, if interfaces
can be dynamically added or removed.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue May 7 05:30:45 1996 UTC (28 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -6 lines
Kill a couple of unnecessary calls to strlen().

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue May 7 02:55:00 1996 UTC (28 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +36 -21 lines
Update for the changes to struct ifnet.  While I'm here, fix a couple
of long-standing bugs:

	- Actually deal with the fact that the kernel ifnet list is
	  a TAILQ; it just happened to work before.

	- Use kvm_openfiles() instead of kvm_open().  The code passed
	  arguments to kvm_open() as if it were kvm_openfiles(), but
	  apparently went unnoticed since the prototypes are the same.
	  Amusing bit: there were XXX's in the code which seemed to
	  apologize for a verbose libkvm, when it happened to be a
	  bug in netstat!

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Oct 17 07:17:04 1995 UTC (29 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Implement change done in revision 1.12 (for PR #1473 & duplicates) in a
slightly different way.  This widens the Address field instead of the
Ipkts field because Address is the one that may be too big.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Oct 3 21:42:36 1995 UTC (29 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -2 lines
New-style RCS ids.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Sep 28 06:22:54 1995 UTC (29 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -6 lines
Change formatting so that columns line up; PR #1473 + several duplicates

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 3 03:16:57 1995 UTC (29 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Remove an extra htonl().

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 12 03:03:07 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +21 -7 lines
Update to match kernel changes.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Oct 6 16:35:09 1994 UTC (30 years, 2 months ago) by mycroft
Branches: CSRG
CVS tags: lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +56 -53 lines
Import original 4.4-Lite version.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Sep 17 00:14:20 1994 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Align link address under `Address' header.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri May 13 08:08:10 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +54 -76 lines
Clean up import.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Apr 1 09:18:09 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -11 lines
kill lots of off_t's.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Mar 28 10:29:31 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +19 -15 lines
clean up, for off_t...  ugliest 'cleaning' possible, i think...

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Mar 3 22:03:33 1994 UTC (30 years, 9 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -3 lines
netname() takes a struct in_addr, not an int. Breaks on sparc.
fix from Chuck Cranor <chuck@maria.wustl.edu>

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Feb 22 04:19:37 1994 UTC (30 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
fix to print netstat unit number right; from Greenman

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:10:53 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
Add RCS identifiers.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jul 11 13:54:14 1993 UTC (31 years, 5 months ago) by paul
Branches: MAIN
CVS tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +20 -1 lines
Included Havard Eidnes' latest changes.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
after 0.2.2 "stable" patches applied

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>