Up to [cvs.NetBSD.org] / src / usr.bin / netstat
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.108.2.1 / (download) - annotate - [select for diffs], Thu Jan 12 12:07:23 2023 UTC (2 months, 2 weeks ago) by martin
Branch: netbsd-10
Changes since 1.108: +14 -16
lines
Diff to previous 1.108 (colored) next main 1.109 (colored)
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) - annotate - [select for diffs], Wed Dec 28 18:34:33 2022 UTC (3 months ago) by mrg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.108: +14 -16
lines
Diff to previous 1.108 (colored)
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) - annotate - [select for diffs], Mon Dec 12 05:09:33 2022 UTC (3 months, 2 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.107: +4 -5
lines
Diff to previous 1.107 (colored)
Use warn() instead of warnx() and simplify.
Revision 1.107 / (download) - annotate - [select for diffs], Sat Nov 19 14:42:35 2022 UTC (4 months, 1 week ago) by taca
Branch: MAIN
Changes since 1.106: +3 -3
lines
Diff to previous 1.106 (colored)
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) - annotate - [select for diffs], Mon Oct 24 08:11:25 2022 UTC (5 months ago) by msaitoh
Branch: MAIN
Changes since 1.105: +4 -5
lines
Diff to previous 1.105 (colored)
Make ifq_drops in struct ifqueue and struct ifaltq 64 bit.
Revision 1.105 / (download) - annotate - [select for diffs], Wed Sep 21 07:59:19 2022 UTC (6 months, 1 week ago) by msaitoh
Branch: MAIN
Changes since 1.104: +11 -11
lines
Diff to previous 1.104 (colored)
s/u_quad_t/uint64_t/. No functional change.
Revision 1.94.4.2 / (download) - annotate - [select for diffs], Mon Sep 12 14:29:19 2022 UTC (6 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.94.4.1: +109 -64
lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)
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) - annotate - [select for diffs], Mon Sep 12 14:23:41 2022 UTC (6 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.95: +109 -64
lines
Diff to previous 1.95 (colored) next main 1.96 (colored)
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) - annotate - [select for diffs], Mon Sep 12 02:25:44 2022 UTC (6 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.103: +6 -4
lines
Diff to previous 1.103 (colored)
Print oqdrops correctly in continuous display mode using with kvm.
Revision 1.103 / (download) - annotate - [select for diffs], Sun Sep 11 23:52:20 2022 UTC (6 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.102: +3 -3
lines
Diff to previous 1.102 (colored)
Fix printing current output drop packet count in continuous display mode.
Revision 1.102 / (download) - annotate - [select for diffs], Mon Sep 5 04:52:53 2022 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.101: +3 -20
lines
Diff to previous 1.101 (colored)
G.C. No functional change.
Revision 1.101 / (download) - annotate - [select for diffs], Mon Sep 5 02:26:22 2022 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.100: +87 -23
lines
Diff to previous 1.100 (colored)
Print oqdrops correctly.
Revision 1.100 / (download) - annotate - [select for diffs], Mon Sep 5 00:18:25 2022 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.99: +19 -23
lines
Diff to previous 1.99 (colored)
Get if_data correctly when kvm is used.
Revision 1.99 / (download) - annotate - [select for diffs], Fri Sep 2 06:25:43 2022 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.98: +10 -14
lines
Diff to previous 1.98 (colored)
KNF. No functional change.
Revision 1.98 / (download) - annotate - [select for diffs], Thu Sep 1 10:10:20 2022 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.97: +27 -27
lines
Diff to previous 1.97 (colored)
KNF. No functional change.
Revision 1.97 / (download) - annotate - [select for diffs], Thu Aug 18 12:25:32 2022 UTC (7 months, 1 week ago) by msaitoh
Branch: MAIN
Changes since 1.96: +6 -6
lines
Diff to previous 1.96 (colored)
Use NULL instead of 0.
Revision 1.94.12.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:17 2020 UTC (2 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.94.12.1: +47 -19
lines
Diff to previous 1.94.12.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)
Merge changes from current as of 20200406
Revision 1.96 / (download) - annotate - [select for diffs], Sun Feb 2 03:41:12 2020 UTC (3 years, 1 month ago) by thorpej
Branch: 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
Changes since 1.95: +47 -19
lines
Diff to previous 1.95 (colored)
Update for per-cpu interface statistics.
Revision 1.94.12.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:22 2019 UTC (3 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.94: +18 -13
lines
Diff to previous 1.94 (colored)
Sync with HEAD
Revision 1.94.10.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:14 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.94: +18 -13
lines
Diff to previous 1.94 (colored) next main 1.95 (colored)
Sync with HEAD
Revision 1.94.4.1 / (download) - annotate - [select for diffs], Thu Jul 26 23:43:31 2018 UTC (4 years, 8 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Changes since 1.94: +18 -13
lines
Diff to previous 1.94 (colored)
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) - annotate - [select for diffs], Wed Jul 11 07:46:20 2018 UTC (4 years, 8 months ago) by msaitoh
Branch: 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
Changes since 1.94: +18 -13
lines
Diff to previous 1.94 (colored)
Print iqdrops, too. This change also fixes a bug that Odrops prints iqdrops when kvm read failed.
Revision 1.91.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:15 2017 UTC (5 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.91: +21 -9
lines
Diff to previous 1.91 (colored) next main 1.92 (colored)
Sync with HEAD
Revision 1.89.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:05 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.89.2.1: +37 -26
lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)
Sync with HEAD
Revision 1.94 / (download) - annotate - [select for diffs], Thu Feb 23 07:57:10 2017 UTC (6 years, 1 month ago) by ozaki-r
Branch: 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
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
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) - annotate - [select for diffs], Sun Jan 22 04:52:04 2017 UTC (6 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.92: +20 -10
lines
Diff to previous 1.92 (colored)
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) - annotate - [select for diffs], Sun Jan 22 04:26:31 2017 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.91: +4 -2
lines
Diff to previous 1.91 (colored)
sprinkle free
Revision 1.91 / (download) - annotate - [select for diffs], Wed Jan 11 01:25:05 2017 UTC (6 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.90: +18 -19
lines
Diff to previous 1.90 (colored)
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) - annotate - [select for diffs], Sat Jan 7 08:56:58 2017 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.89: +29 -15
lines
Diff to previous 1.89 (colored)
Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
Revision 1.90 / (download) - annotate - [select for diffs], Thu Nov 24 00:05:13 2016 UTC (6 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.89: +29 -15
lines
Diff to previous 1.89 (colored)
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) - annotate - [select for diffs], Thu Jul 14 20:38:20 2016 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.88: +8 -11
lines
Diff to previous 1.88 (colored)
more XXX removal.
Revision 1.88 / (download) - annotate - [select for diffs], Thu Jul 14 20:34:36 2016 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.87: +8 -10
lines
Diff to previous 1.87 (colored)
XXX: removal
Revision 1.87 / (download) - annotate - [select for diffs], Thu Jul 14 19:39:41 2016 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.86: +3 -3
lines
Diff to previous 1.86 (colored)
remove __P
Revision 1.86 / (download) - annotate - [select for diffs], Thu Jul 14 18:58:26 2016 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.85: +50 -82
lines
Diff to previous 1.85 (colored)
dedup
Revision 1.85 / (download) - annotate - [select for diffs], Thu Jul 14 18:19:11 2016 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.84: +117 -19
lines
Diff to previous 1.84 (colored)
use sysctl to print multicast addresses
Revision 1.84 / (download) - annotate - [select for diffs], Wed Jul 13 22:01:12 2016 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.83: +57 -39
lines
Diff to previous 1.83 (colored)
fix sysctl based interface printing, and annotate where we should add the missing multicast printing code.
Revision 1.83 / (download) - annotate - [select for diffs], Mon Feb 29 18:21:15 2016 UTC (7 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.82: +3 -3
lines
Diff to previous 1.82 (colored)
PR/50872: David Binderman: Use logical and instead of arithmetic
Revision 1.82 / (download) - annotate - [select for diffs], Sun Sep 20 00:30:04 2015 UTC (7 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.81: +28 -6
lines
Diff to previous 1.81 (colored)
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) - annotate - [select for diffs], Thu Jan 8 11:47:11 2015 UTC (8 years, 2 months ago) by martin
Branch: 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
Changes since 1.79.4.1: +6 -17
lines
Diff to previous 1.79.4.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)
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) - annotate - [select for diffs], Thu Jan 8 11:01:01 2015 UTC (8 years, 2 months ago) by martin
Branch: netbsd-7
Changes since 1.79: +8 -7
lines
Diff to previous 1.79 (colored)
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) - annotate - [select for diffs], Wed Jan 7 22:43:01 2015 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.80: +6 -17
lines
Diff to previous 1.80 (colored)
adjust to the netname4 prototype.
Revision 1.80 / (download) - annotate - [select for diffs], Thu Nov 6 21:30:09 2014 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.79: +8 -7
lines
Diff to previous 1.79 (colored)
use the common code from route.c
Revision 1.74.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:01 2014 UTC (8 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.74.2.2: +5 -19
lines
Diff to previous 1.74.2.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)
Rebase to HEAD as of a few days ago.
Revision 1.72.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:42:46 2014 UTC (8 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.72.2.2: +7 -24
lines
Diff to previous 1.72.2.2 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)
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) - annotate - [select for diffs], Sat Oct 19 15:56:06 2013 UTC (9 years, 5 months ago) by christos
Branch: 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
Changes since 1.78: +5 -4
lines
Diff to previous 1.78 (colored)
use correct function and symbolic constants
Revision 1.78 / (download) - annotate - [select for diffs], Sat Oct 19 00:28:38 2013 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.77: +6 -24
lines
Diff to previous 1.77 (colored)
use new scopeid functions
Revision 1.77 / (download) - annotate - [select for diffs], Fri Oct 18 20:26:45 2013 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.76: +11 -8
lines
Diff to previous 1.76 (colored)
- avoid pointer gymnastics - remove unused variables
Revision 1.74.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:01 2013 UTC (9 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.74.2.1: +2 -5
lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored)
resync from head
Revision 1.76 / (download) - annotate - [select for diffs], Fri Mar 1 18:26:11 2013 UTC (10 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
agc-symver-base,
agc-symver
Changes since 1.75: +2 -5
lines
Diff to previous 1.75 (colored)
Retire OSI network stack. OK core@
Revision 1.74.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:58 2012 UTC (10 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.74: +6 -6
lines
Diff to previous 1.74 (colored)
Resync to 2012-11-19 00:00:00 UTC
Revision 1.72.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:24 2012 UTC (10 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.72.2.1: +6 -6
lines
Diff to previous 1.72.2.1 (colored) to branchpoint 1.72 (colored)
sync with head
Revision 1.73.2.1 / (download) - annotate - [select for diffs], Wed Oct 24 03:39:17 2012 UTC (10 years, 5 months ago) by riz
Branch: 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
Changes since 1.73: +6 -6
lines
Diff to previous 1.73 (colored) next main 1.74 (colored)
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) - annotate - [select for diffs], Fri Oct 19 19:50:19 2012 UTC (10 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Changes since 1.74: +6 -6
lines
Diff to previous 1.74 (colored)
Line up total numbers again (for -b case and -X case).
Revision 1.72.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:37 2012 UTC (10 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.72: +30 -34
lines
Diff to previous 1.72 (colored)
sync with head
Revision 1.74 / (download) - annotate - [select for diffs], Tue Mar 20 20:34:58 2012 UTC (11 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.73: +5 -11
lines
Diff to previous 1.73 (colored)
Use C89 function definitions
Revision 1.73 / (download) - annotate - [select for diffs], Sun Feb 12 19:11:33 2012 UTC (11 years, 1 month ago) by christos
Branch: 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
Changes since 1.72: +27 -25
lines
Diff to previous 1.72 (colored)
PR/44889: Yamamoto Takashi: netstat -d option is broken (from Elad)
Revision 1.72 / (download) - annotate - [select for diffs], Fri Sep 16 15:39:27 2011 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.71: +3 -3
lines
Diff to previous 1.71 (colored)
Use __dead
Revision 1.70.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:11 2011 UTC (12 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.70: +4 -12
lines
Diff to previous 1.70 (colored) next main 1.71 (colored)
Sync with HEAD
Revision 1.71 / (download) - annotate - [select for diffs], Fri Feb 4 14:31:23 2011 UTC (12 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base
Changes since 1.70: +4 -12
lines
Diff to previous 1.70 (colored)
Use RT_ROUNDUP() and friends from sys/route.h instead of homegrown variants.
Revision 1.70 / (download) - annotate - [select for diffs], Mon Dec 13 21:15:30 2010 UTC (12 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.69: +7 -6
lines
Diff to previous 1.69 (colored)
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) - annotate - [select for diffs], Fri Jul 9 07:04:30 2010 UTC (12 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.68: +4 -4
lines
Diff to previous 1.68 (colored)
Line up total numbers again.
Revision 1.68 / (download) - annotate - [select for diffs], Wed Feb 24 11:00:27 2010 UTC (13 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.67: +57 -15
lines
Diff to previous 1.67 (colored)
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) - annotate - [select for diffs], Sun Sep 27 18:19:18 2009 UTC (13 years, 6 months ago) by plunky
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.66: +3 -3
lines
Diff to previous 1.66 (colored)
protecting sockaddr_in6 with -DINET6
Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 13 21:46:23 2009 UTC (13 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.65: +20 -20
lines
Diff to previous 1.65 (colored)
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) - annotate - [select for diffs], Sun Sep 13 19:04:29 2009 UTC (13 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.64: +16 -16
lines
Diff to previous 1.64 (colored)
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) - annotate - [select for diffs], Sun Sep 13 02:53:17 2009 UTC (13 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.63: +636 -228
lines
Diff to previous 1.63 (colored)
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) - annotate - [select for diffs], Wed May 13 19:19:59 2009 UTC (13 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.62: +21 -21
lines
Diff to previous 1.62 (colored) next main 1.63 (colored)
Sync with HEAD. Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.63 / (download) - annotate - [select for diffs], Sun Apr 12 16:08:37 2009 UTC (13 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase,
jym-xensuspend-base
Changes since 1.62: +21 -21
lines
Diff to previous 1.62 (colored)
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) - annotate - [select for diffs], Sun May 18 12:36:07 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.61: +2 -27
lines
Diff to previous 1.61 (colored) next main 1.62 (colored)
sync with head.
Revision 1.62 / (download) - annotate - [select for diffs], Wed Apr 23 15:35:37 2008 UTC (14 years, 11 months ago) by thorpej
Branch: 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
Changes since 1.61: +2 -27
lines
Diff to previous 1.61 (colored)
netns is no longer in the tree; completely purge it from netstat(1).
Revision 1.61 / (download) - annotate - [select for diffs], Sat Aug 26 15:33:20 2006 UTC (16 years, 7 months ago) by matt
Branch: 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
Changes since 1.60: +8 -2
lines
Diff to previous 1.60 (colored)
Conditionalize XNS support. No longer enabled.
Revision 1.59.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:17:07 2006 UTC (16 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.59: +7 -7
lines
Diff to previous 1.59 (colored) next main 1.60 (colored)
Sync with head.
Revision 1.60 / (download) - annotate - [select for diffs], Sun May 28 16:51:40 2006 UTC (16 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.59: +7 -7
lines
Diff to previous 1.59 (colored)
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) - annotate - [select for diffs], Thu Aug 4 19:41:28 2005 UTC (17 years, 7 months ago) by rpaulo
Branch: MAIN
Branch point for: chap-midi
Changes since 1.58: +3 -2
lines
Diff to previous 1.58 (colored)
Added #include <kvm.h> since netstat.h, which is included too, needs it.
Revision 1.58 / (download) - annotate - [select for diffs], Tue Nov 16 05:59:32 2004 UTC (18 years, 4 months ago) by itojun
Branch: 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
Changes since 1.57: +2 -6
lines
Diff to previous 1.57 (colored)
NI_WITHSCOPEID was not picked up by IETF standardization process.
Revision 1.57 / (download) - annotate - [select for diffs], Sat Nov 15 11:54:34 2003 UTC (19 years, 4 months ago) by ragge
Branch: 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
Changes since 1.56: +9 -4
lines
Diff to previous 1.56 (colored)
Use itimerval() instead of alarm() for interval displaying. This increases accuracy on interval stats also on fast machines.
Revision 1.56 / (download) - annotate - [select for diffs], Tue Aug 19 12:52:13 2003 UTC (19 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.55: +4 -3
lines
Diff to previous 1.55 (colored)
correct strange indentation
Revision 1.55 / (download) - annotate - [select for diffs], Thu Aug 7 11:15:18 2003 UTC (19 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.54: +3 -7
lines
Diff to previous 1.54 (colored)
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) - annotate - [select for diffs], Wed May 14 23:36:32 2003 UTC (19 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.53: +5 -5
lines
Diff to previous 1.53 (colored)
use proper #ifdef to determine behavior (__KAME__)
Revision 1.53 / (download) - annotate - [select for diffs], Tue Apr 15 08:07:10 2003 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.52: +3 -3
lines
Diff to previous 1.52 (colored)
make char array bigger where it seems too small and may overrun.
Revision 1.52 / (download) - annotate - [select for diffs], Wed Jun 19 23:38:59 2002 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.51: +3 -3
lines
Diff to previous 1.51 (colored)
use macro to determine link-local multicast addr
Revision 1.51 / (download) - annotate - [select for diffs], Wed Jun 19 16:42:09 2002 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.50: +11 -7
lines
Diff to previous 1.50 (colored)
identify kame scopeid hack with KAME_SCOPEID
Revision 1.50 / (download) - annotate - [select for diffs], Sat Jun 8 14:56:26 2002 UTC (20 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.49: +3 -3
lines
Diff to previous 1.49 (colored)
make an auto const variable static.
Revision 1.49 / (download) - annotate - [select for diffs], Sat Oct 6 18:48:30 2001 UTC (21 years, 5 months ago) by bjh21
Branch: 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
Changes since 1.48: +17 -19
lines
Diff to previous 1.48 (colored)
Use getnameinfo() for printing link-layer addresses in netstat -i, rather than doing it ourselves.
Revision 1.48 / (download) - annotate - [select for diffs], Fri Apr 6 05:10:28 2001 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.47: +5 -4
lines
Diff to previous 1.47 (colored)
pedant changes for strcpy/sprintf.
Revision 1.47 / (download) - annotate - [select for diffs], Mon Feb 19 23:03:50 2001 UTC (22 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.46: +3 -3
lines
Diff to previous 1.46 (colored)
convert to use getprogname()
Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 14 23:00:57 2000 UTC (22 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.45: +7 -3
lines
Diff to previous 1.45 (colored)
Print out IEEE1394 addresses with : . Add a hack to limit the address to 8 bytes.
Revision 1.31.2.1 / (download) - annotate - [select for diffs], Thu Oct 19 16:32:04 2000 UTC (22 years, 5 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.31: +4 -4
lines
Diff to previous 1.31 (colored) next main 1.32 (colored)
Pull up revision 1.45 (requested by he): Format string cleanup.
Revision 1.40.4.2 / (download) - annotate - [select for diffs], Wed Oct 18 01:32:48 2000 UTC (22 years, 5 months ago) by tv
Branch: 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
Changes since 1.40.4.1: +4 -4
lines
Diff to previous 1.40.4.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)
Pullup usr.bin string format fixes [is]. See "cvs log" for explicit revision numbers per file, from sommerfeld.
Revision 1.45 / (download) - annotate - [select for diffs], Wed Oct 11 14:46:14 2000 UTC (22 years, 5 months ago) by is
Branch: MAIN
Changes since 1.44: +4 -4
lines
Diff to previous 1.44 (colored)
More format string cleanup by sommerfeld.
Revision 1.44 / (download) - annotate - [select for diffs], Thu Jul 6 12:40:19 2000 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.43: +2 -6
lines
Diff to previous 1.43 (colored)
more stats. from kame
Revision 1.40.4.1 / (download) - annotate - [select for diffs], Mon Jul 3 22:45:12 2000 UTC (22 years, 9 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.40: +7 -3
lines
Diff to previous 1.40 (colored)
Pull up rev. 1.41: with -inv flag, do not truncate name of the interface (like "strip0").
Revision 1.43 / (download) - annotate - [select for diffs], Mon Jul 3 05:06:43 2000 UTC (22 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.42: +3 -3
lines
Diff to previous 1.42 (colored)
Allocate one more byte for the asterisk after the name of interface.
Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 3 02:51:26 2000 UTC (22 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.41: +3 -2
lines
Diff to previous 1.41 (colored)
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) - annotate - [select for diffs], Sun Jul 2 09:07:23 2000 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.40: +7 -3
lines
Diff to previous 1.40 (colored)
with -inv flag, do not truncate name of the interface (like "strip0").
Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:55 2000 UTC (22 years, 11 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.39: +11 -11
lines
Diff to previous 1.39 (colored)
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) - annotate - [select for diffs], Wed Feb 9 13:57:06 2000 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.38: +18 -4
lines
Diff to previous 1.38 (colored)
use NI_WITHSCOPEID when printing multicast group with -inav.
Revision 1.38 / (download) - annotate - [select for diffs], Sat Feb 5 17:39:22 2000 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.37: +13 -10
lines
Diff to previous 1.37 (colored)
print IPv6 scopeid on -inv. with -in, scopeid is omitted due to insufficient width.
Revision 1.37 / (download) - annotate - [select for diffs], Tue Jan 25 16:07:13 2000 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.36: +6 -6
lines
Diff to previous 1.36 (colored)
better sync with #ifdef notdef part (in -i for AF_INET).
Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 25 15:56:55 2000 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.35: +15 -8
lines
Diff to previous 1.35 (colored)
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) - annotate - [select for diffs], Mon Jan 17 18:24:37 2000 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.34: +25 -2
lines
Diff to previous 1.34 (colored)
print IPv6 multicast group on -ia (-iav will avoid truncation)
Revision 1.32.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:37:06 1999 UTC (23 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.32: +113 -55
lines
Diff to previous 1.32 (colored) next main 1.33 (colored)
Pull up to last week's -current.
Revision 1.34 / (download) - annotate - [select for diffs], Mon Dec 13 15:22:55 1999 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Changes since 1.33: +73 -35
lines
Diff to previous 1.33 (colored)
per-interface statistics. bring in and enable KAME scopeid hack. lots of cleanups. (sync with latest KAME)
Revision 1.33 / (download) - annotate - [select for diffs], Fri Nov 19 10:44:33 1999 UTC (23 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.32: +58 -38
lines
Diff to previous 1.32 (colored)
Change printf formats for 64bit counters.
Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 1 18:40:35 1999 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.31: +25 -2
lines
Diff to previous 1.31 (colored)
make netstat IPv6-ready.
Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 14 22:28:05 1999 UTC (24 years ago) by mycroft
Branch: 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
Changes since 1.30: +40 -29
lines
Diff to previous 1.30 (colored)
Make the damned columns line up.
Revision 1.25.2.1 / (download) - annotate - [select for diffs], Tue Jan 19 07:32:29 1999 UTC (24 years, 2 months ago) by cgd
Branch: netbsd-1-3
Changes since 1.25: +4 -2
lines
Diff to previous 1.25 (colored) next main 1.26 (colored)
pull up rev 1.30 from trunk (mrg)
Revision 1.30 / (download) - annotate - [select for diffs], Mon Jan 11 12:31:53 1999 UTC (24 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.29: +4 -2
lines
Diff to previous 1.29 (colored)
#ifndef SMALL changes. saves 30k on the sparc
Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 25 20:59:39 1998 UTC (24 years, 7 months ago) by ross
Branch: MAIN
Changes since 1.28: +4 -3
lines
Diff to previous 1.28 (colored)
Add { and } to shut up egcs. Reformat the more questionable code.
Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 12 03:20:14 1998 UTC (24 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.27: +15 -9
lines
Diff to previous 1.27 (colored)
- 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) - annotate - [select for diffs], Thu May 14 22:48:49 1998 UTC (24 years, 10 months ago) by kml
Branch: MAIN
Changes since 1.26: +16 -16
lines
Diff to previous 1.26 (colored)
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) - annotate - [select for diffs], Thu Mar 19 02:42:57 1998 UTC (25 years ago) by kml
Branch: MAIN
Changes since 1.25: +71 -26
lines
Diff to previous 1.25 (colored)
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) - annotate - [select for diffs], Sun Oct 19 05:49:58 1997 UTC (25 years, 5 months ago) by lukem
Branch: 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
Changes since 1.24: +9 -8
lines
Diff to previous 1.24 (colored)
fix up .Nm usage, getopt returns -1 not EOF
Revision 1.24.2.2 / (download) - annotate - [select for diffs], Thu May 22 17:21:28 1997 UTC (25 years, 10 months ago) by christos
Branch: SYN_cache_branch
Changes since 1.24.2.1: +421 -0
lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)
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 (25 years, 10 months ago) by christos
Branch: SYN_cache_branch
Changes since 1.24: +0 -421
lines
FILE REMOVED
file if.c was added on branch SYN_cache_branch on 1997-05-22 17:21:28 +0000
Revision 1.24 / (download) - annotate - [select for diffs], Thu May 22 17:21:27 1997 UTC (25 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: SYN_cache_cur_base
Branch point for: SYN_cache_branch
Changes since 1.23: +4 -4
lines
Diff to previous 1.23 (colored)
PR/3660: Dave Huang: Fix formatting misalignments in appletalk PR/3659: Dave Huang: Fix PCB reporting in appletalk
Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 7 06:58:18 1997 UTC (25 years, 11 months ago) by mikel
Branch: MAIN
Changes since 1.22: +6 -6
lines
Diff to previous 1.22 (colored)
more column alignment fixes
Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 7 03:04:24 1997 UTC (25 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.21: +4 -4
lines
Diff to previous 1.21 (colored)
PR/3451: Anders Hjalmarsson: Column alignment fixes after the netatalk addition.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 3 04:46:45 1997 UTC (26 years ago) by christos
Branch: MAIN
Changes since 1.20: +16 -11
lines
Diff to previous 1.20 (colored)
- netatalk additions - printf format fixes - minor prototype cleanups
Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 26 01:51:25 1997 UTC (26 years ago) by thorpej
Branch: MAIN
Changes since 1.19: +10 -4
lines
Diff to previous 1.19 (colored)
Print Ethernet and FDDI addresses in the same format as ether_ntoa(). From Matt Thomas <matt@3am-software.com>
Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu Jan 2 07:21:41 1997 UTC (26 years, 3 months ago) by mellon
Branch: CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +2 -2
lines
Diff to previous 1.1.1.1 (colored)
imported from 44lite2
Revision 1.16.4.2 / (download) - annotate - [select for diffs], Fri Jun 7 21:46:46 1996 UTC (26 years, 9 months ago) by thorpej
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA
Changes since 1.16.4.1: +5 -7
lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)
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) - annotate - [select for diffs], Fri Jun 7 21:43:26 1996 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +5 -7
lines
Diff to previous 1.18 (colored)
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) - annotate - [select for diffs], Tue Jun 4 20:27:06 1996 UTC (26 years, 10 months ago) by cgd
Branch: netbsd-1-2
Changes since 1.16: +9 -4
lines
Diff to previous 1.16 (colored)
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) - annotate - [select for diffs], Tue Jun 4 20:22:23 1996 UTC (26 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.17: +3 -3
lines
Diff to previous 1.17 (colored)
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) - annotate - [select for diffs], Tue Jun 4 20:09:03 1996 UTC (26 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.16: +8 -3
lines
Diff to previous 1.16 (colored)
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) - annotate - [select for diffs], Tue May 7 05:30:45 1996 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.15: +3 -6
lines
Diff to previous 1.15 (colored)
Kill a couple of unnecessary calls to strlen().
Revision 1.15 / (download) - annotate - [select for diffs], Tue May 7 02:55:00 1996 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +36 -21
lines
Diff to previous 1.14 (colored)
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) - annotate - [select for diffs], Tue Oct 17 07:17:04 1995 UTC (27 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.13: +3 -3
lines
Diff to previous 1.13 (colored)
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) - annotate - [select for diffs], Tue Oct 3 21:42:36 1995 UTC (27 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.12: +7 -2
lines
Diff to previous 1.12 (colored)
New-style RCS ids.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 28 06:22:54 1995 UTC (27 years, 6 months ago) by jtc
Branch: MAIN
Changes since 1.11: +6 -6
lines
Diff to previous 1.11 (colored)
Change formatting so that columns line up; PR #1473 + several duplicates
Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 3 03:16:57 1995 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -2
lines
Diff to previous 1.10 (colored)
Remove an extra htonl().
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 12 03:03:07 1995 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +21 -7
lines
Diff to previous 1.9 (colored)
Update to match kernel changes.
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Oct 6 16:35:09 1994 UTC (28 years, 5 months ago) by mycroft
Branch: CSRG
CVS Tags: lite-1
Changes since 1.1: +56 -53
lines
Diff to previous 1.1 (colored)
Import original 4.4-Lite version.
Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 17 00:14:20 1994 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +2 -2
lines
Diff to previous 1.8 (colored)
Align link address under `Address' header.
Revision 1.8 / (download) - annotate - [select for diffs], Fri May 13 08:08:10 1994 UTC (28 years, 10 months ago) by mycroft
Branch: 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
Changes since 1.7: +54 -76
lines
Diff to previous 1.7 (colored)
Clean up import.
Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 1 09:18:09 1994 UTC (29 years ago) by cgd
Branch: MAIN
Changes since 1.6: +11 -11
lines
Diff to previous 1.6 (colored)
kill lots of off_t's.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 28 10:29:31 1994 UTC (29 years ago) by cgd
Branch: MAIN
Changes since 1.5: +19 -15
lines
Diff to previous 1.5 (colored)
clean up, for off_t... ugliest 'cleaning' possible, i think...
Revision 1.5 / (download) - annotate - [select for diffs], Thu Mar 3 22:03:33 1994 UTC (29 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.4: +5 -3
lines
Diff to previous 1.4 (colored)
netname() takes a struct in_addr, not an int. Breaks on sparc. fix from Chuck Cranor <chuck@maria.wustl.edu>
Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 22 04:19:37 1994 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
fix to print netstat unit number right; from Greenman
Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 18:10:53 1993 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1
lines
Diff to previous 1.2 (colored)
Add RCS identifiers.
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 11 13:54:14 1993 UTC (29 years, 8 months ago) by paul
Branch: 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
Changes since 1.1: +20 -1
lines
Diff to previous 1.1 (colored)
Included Havard Eidnes' latest changes.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (30 years ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-8
after 0.2.2 "stable" patches applied