The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Aug 18 13:18:17 2023 UTC (20 months ago) by martin
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -4 lines
Rename local bpf_* functions to nsbpf_* to avoid conflicts with
new libpcap bpf_* functions

Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Oct 24 08:11:25 2022 UTC (2 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, 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, netbsd-10
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3 lines
Make ifq_drops in struct ifqueue and struct ifaltq 64 bit.

Revision 1.99.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 12 14:29:19 2022 UTC (2 years, 7 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +57 -23 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.99.18.1: download - view: text, markup, annotated - select for diffs
Mon Sep 12 14:23:41 2022 UTC (2 years, 7 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +63 -32 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.103: download - view: text, markup, annotated - select for diffs
Fri Sep 2 06:25:43 2022 UTC (2 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +6 -7 lines
KNF. No functional change.

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

Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Mar 10 00:32:15 2021 UTC (4 years, 1 month ago) by simonb
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +8 -11 lines
Remove Network ATM soft intr queue reporting, we don't have that in the
kernel anymore.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Apr 23 00:24:50 2020 UTC (4 years, 11 months ago) by joerg
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +34 -2 lines
Avoid common symbol definitions.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Jul 14 20:13:10 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-9, netbsd-8
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +11 -28 lines
remove soft interrupt queues that don't exist anymore.

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

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

Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Jul 13 21:57:01 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -3 lines
Use sysctl for interface printing (-i), leave on for multicast address printing
(-ia) and comment in the code where this is missing?
XXX: should that be an ioctl or sysctl? provide getifmultiaddrs() via the
routing socket? I guess since this is just for netstat a simple sysctl or
ioctl would suffice. I lean towards sysctl.

Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 8 11:01:01 2015 UTC (10 years, 3 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.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +5 -4 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.95: download - view: text, markup, annotated - select for diffs
Wed Nov 12 03:34:59 2014 UTC (10 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
PR/47704: Takahiro HAYASHI: Fix -L flag

Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Nov 7 12:42:27 2014 UTC (10 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +7 -6 lines
fix A,v,T with route display.

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

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Oct 9 23:45:47 2014 UTC (10 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +9 -4 lines
Fix a bug introduced in rev. 1.62; it fails to negate (a && b).

Revision 1.83.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:01 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.83.2.2: preferred, colored; branchpoint 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.2: +113 -95 lines
Rebase to HEAD as of a few days ago.

Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:58:32 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +11 -11 lines
Rebase.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri May 30 01:44:21 2014 UTC (10 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +7 -7 lines
netstat(1) and ifmcstat(8): ifnet was renamed to ifnet_list, PR/48850.

Revision 1.81.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:42:46 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.81.2.1: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.1: +161 -193 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.90: download - view: text, markup, annotated - select for diffs
Mon Apr 28 15:41:15 2014 UTC (10 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +2 -3 lines
use the same for the route metrics part, both in the sysctl and kmem paths.
From Takahiro HAYASHI

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Apr 24 14:56:29 2014 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +7 -6 lines
The sysctl code does not support verbose route printing that prints the
internal route statistics. Restore the old kmem route printing code that
was not just used for post-mortem displays. Reported by kardel@, test by
netstat -nrvf inet

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sat Nov 23 22:01:12 2013 UTC (11 years, 4 months ago) by christos
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
Update for new pcb tailq's.
While here fix ipv6 pcb printing by making tcp6_dump with tcp.
XXX: Merge the inet and the inet6 code. It is silly to need to specify
-p tcp6 to print a tcp6 pcb, we already know what it is.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Oct 18 22:18:14 2013 UTC (11 years, 6 months ago) by bad
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +110 -92 lines
Make the -f option accept multiple address families.
Bump man page date.

Revision 1.70.12.1: download - view: text, markup, annotated - select for diffs
Tue Jul 30 02:26:10 2013 UTC (11 years, 8 months ago) by msaitoh
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +5 -4 lines
Pull up following revision(s) (requested by christos in ticket #1868):
	usr.bin/netstat/main.c: revision 1.86
	usr.bin/netstat/netstat.h: revision 1.47
	usr.bin/netstat/inet.c: revision 1.102
	usr.bin/netstat/inet.c: revision 1.103
	usr.bin/netstat/inet6.c: revision 1.61
	usr.bin/netstat/inet6.c: revision 1.62
Don't use -P as a kmem printer, verify that the address points to a pcb first!
Not all pointers are 64bit - use uintptr_t instead of uint64_t.

Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 30 02:24:19 2013 UTC (11 years, 8 months ago) by msaitoh
Branches: netbsd-5-2
CVS tags: netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +5 -4 lines
Pull up following revision(s) (requested by christos in ticket #1868):
	usr.bin/netstat/main.c: revision 1.86
	usr.bin/netstat/netstat.h: revision 1.47
	usr.bin/netstat/inet.c: revision 1.102
	usr.bin/netstat/inet.c: revision 1.103
	usr.bin/netstat/inet6.c: revision 1.61
	usr.bin/netstat/inet6.c: revision 1.62
Don't use -P as a kmem printer, verify that the address points to a pcb first!
Not all pointers are 64bit - use uintptr_t instead of uint64_t.

Revision 1.70.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 30 02:22:14 2013 UTC (11 years, 8 months ago) by msaitoh
Branches: netbsd-5
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +5 -4 lines
Pull up following revision(s) (requested by christos in ticket #1868):
	usr.bin/netstat/main.c: revision 1.86
	usr.bin/netstat/netstat.h: revision 1.47
	usr.bin/netstat/inet.c: revision 1.102
	usr.bin/netstat/inet.c: revision 1.103
	usr.bin/netstat/inet6.c: revision 1.61
	usr.bin/netstat/inet6.c: revision 1.62
Don't use -P as a kmem printer, verify that the address points to a pcb first!
Not all pointers are 64bit - use uintptr_t instead of uint64_t.

Revision 1.81.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 29 07:10:13 2013 UTC (11 years, 8 months ago) by msaitoh
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +5 -4 lines
Pull up following revision(s) (requested by christos in ticket #912):
	usr.bin/netstat/main.c: revision 1.86
	usr.bin/netstat/netstat.h: revision 1.47
	usr.bin/netstat/inet.c: revision 1.102
	usr.bin/netstat/inet.c: revision 1.103
	usr.bin/netstat/inet6.c: revision 1.61
	usr.bin/netstat/inet6.c: revision 1.62
Don't use -P as a kmem printer, verify that the address points to a pcb first!
Not all pointers are 64bit - use uintptr_t instead of uint64_t.

Revision 1.81.10.1: download - view: text, markup, annotated - select for diffs
Mon Jul 29 07:06:36 2013 UTC (11 years, 8 months ago) by msaitoh
Branches: netbsd-6-1
CVS tags: 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
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +5 -4 lines
Pull up following revision(s) (requested by christos in ticket #912):
	usr.bin/netstat/main.c: revision 1.86
	usr.bin/netstat/netstat.h: revision 1.47
	usr.bin/netstat/inet.c: revision 1.102
	usr.bin/netstat/inet.c: revision 1.103
	usr.bin/netstat/inet6.c: revision 1.61
	usr.bin/netstat/inet6.c: revision 1.62
Don't use -P as a kmem printer, verify that the address points to a pcb first!
Not all pointers are 64bit - use uintptr_t instead of uint64_t.

Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 29 06:11:02 2013 UTC (11 years, 8 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +5 -4 lines
Pull up following revision(s) (requested by christos in ticket #912):
	usr.bin/netstat/main.c: revision 1.86
	usr.bin/netstat/netstat.h: revision 1.47
	usr.bin/netstat/inet.c: revision 1.102
	usr.bin/netstat/inet.c: revision 1.103
	usr.bin/netstat/inet6.c: revision 1.61
	usr.bin/netstat/inet6.c: revision 1.62
Don't use -P as a kmem printer, verify that the address points to a pcb first!
Not all pointers are 64bit - use uintptr_t instead of uint64_t.

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

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Jun 19 21:12:03 2013 UTC (11 years, 10 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +5 -4 lines
Don't use -P as a kmem printer, verify that the address points to a pcb first!

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Mar 1 18:26:11 2013 UTC (12 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: agc-symver-base, agc-symver
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +49 -99 lines
Retire OSI network stack. OK core@

Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:37 2013 UTC (12 years, 1 month ago) by tls
Branches: tls-maxphys
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +6 -7 lines
resync with head

Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Jan 28 13:49:08 2013 UTC (12 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +6 -7 lines
Use sysctl based code netstat -r. Remove support for post-mortem
analysis.

Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:37 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +13 -24 lines
sync with head

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Mar 22 20:34:43 2012 UTC (13 years, 1 month ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -4 lines
remove KAME IPSEC, replaced by FAST_IPSEC

Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Mar 20 20:34:58 2012 UTC (13 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +11 -22 lines
Use C89 function definitions

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Sep 16 15:39:27 2011 UTC (13 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, netbsd-6-1, netbsd-6-0, netbsd-6
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
Use __dead

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Jul 17 10:22:07 2011 UTC (13 years, 9 months ago) by njoly
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -4 lines
Use errx() to display kvm_openfiles error message, the provided buffer
already has it.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed May 4 01:13:35 2011 UTC (13 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +21 -15 lines
Always try to open kmem, do not always set use_sysctl to 1, and do not
fail if opening kmem fails unless !use_sysctl.  Fixes netstat(1) options
such as -s.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue May 3 18:28:46 2011 UTC (13 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +37 -18 lines
Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Dec 13 21:15:30 2010 UTC (14 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +9 -2 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.76: download - view: text, markup, annotated - select for diffs
Tue Jun 29 12:38:12 2010 UTC (14 years, 9 months ago) by kefren
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -2 lines
Add mpls into family address list

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Jun 27 06:52:37 2010 UTC (14 years, 9 months ago) by kefren
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +6 -3 lines
Add -T flag, that shows tags in route output

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Feb 24 11:00:27 2010 UTC (15 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -2 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.73: download - view: text, markup, annotated - select for diffs
Mon Sep 14 10:36:51 2009 UTC (15 years, 7 months ago) by degroote
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -2 lines
Import pfsync support from OpenBSD 4.2

Pfsync interface exposes change in the pf(4) over a pseudo-interface, and can
be used to synchronise different pf.

This work was part of my 2009 GSoC

No objection on tech-net@

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Sep 13 02:53:17 2009 UTC (15 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +17 -3 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.70.6.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:59 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +84 -83 lines
Sync with HEAD.

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

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Apr 12 16:08:37 2009 UTC (16 years ago) by lukem
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +84 -83 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.69.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:29:17 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:19:24 2008 UTC (16 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, 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, 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
Branch point for: netbsd-5-2, netbsd-5-1, netbsd-5, jym-xensuspend
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:07 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +74 -125 lines
sync with head.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Apr 24 03:46:25 2008 UTC (17 years ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +19 -19 lines
Make note of a few things no longer available via kvm.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Apr 23 15:35:37 2008 UTC (17 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +57 -100 lines
netns is no longer in the tree; completely purge it from netstat(1).

Revision 1.67: download - view: text, markup, annotated - select for diffs
Wed Apr 23 15:17:42 2008 UTC (17 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -3 lines
Make DDP stats per-cpu.  While here, bump the counters to 64-bit and
make them available by sysctl.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Apr 23 07:29:47 2008 UTC (17 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -9 lines
PF_KEY stats for IPSEC and FAST_IPSEC are now per-CPU.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Apr 15 16:06:28 2008 UTC (17 years ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -4 lines
ARP and IGMP stats are now available by sysctl.

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Mon May 7 02:45:37 2007 UTC (17 years, 11 months ago) by snj
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +25 -5 lines
Pull up following revision(s) (requested by mlelstv in ticket #604):
	usr.bin/netstat/main.c: revision 1.64
Fall back to kvm interface for protocols that do not yet
offer a sysctl interface. Fixes PR bin/36210.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Apr 27 18:37:53 2007 UTC (17 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: 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
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +25 -5 lines
Fall back to kvm interface for protocols that do not yet
offer a sysctl interface. Fixes PR bin/36210.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Nov 15 11:55:00 2006 UTC (18 years, 5 months ago) by elad
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -2 lines
PR/35056: Keiichi Shima: netstat does not compile in crunched environment

Patch applied, thanks!

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Oct 13 16:33:57 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +47 -32 lines
Refactor code a bit so we only use kmem when we really need it.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Sep 27 12:51:43 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Good intentions are still intentions. If we can't open kvm, but we still
have sysctl, it's still not enough for -P. A groveler is a groveler is
a groveler.

On a different note, this code needs a rewrite.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Sep 14 20:43:50 2006 UTC (18 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +8 -6 lines
- Back to using kvm if we have access to it, since the sysctl stats do not
  yet support all the fields we need.
- Don't core-dump if we could not open the kvm file.

Revision 1.55.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 1 14:40:39 2006 UTC (18 years, 7 months ago) by tron
Branches: abandoned-netbsd-4
Diff to: previous 1.55.2.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.2: +8 -8 lines
Pull up following revision(s) (requested by christos in ticket #77):
	usr.bin/netstat/main.c: revision 1.58
well, the || needed to be an && and the operand order needed to be changed.
XXX: There are still things like interface printing that need kvm.

Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 1 14:39:36 2006 UTC (18 years, 7 months ago) by tron
Branches: abandoned-netbsd-4
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.1: +3 -3 lines
Pull up following revision(s) (requested by christos in ticket #77):
	usr.bin/netstat/main.c: revision 1.57
Fix another && || confusion, from Kurt Schreiner, thanks!

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 1 14:38:34 2006 UTC (18 years, 7 months ago) by tron
Branches: abandoned-netbsd-4
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
Pull up following revision(s) (requested by christos in ticket #77):
	usr.bin/netstat/main.c: revision 1.56
Don't use || if you need &&.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Aug 26 15:33:20 2006 UTC (18 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +19 -5 lines
Conditionalize XNS support.  No longer enabled.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Aug 22 20:06:17 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +8 -8 lines
well, the || needed to be an && and the operand order needed to be changed.
XXX: There are still things like interface printing that need kvm.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Aug 21 18:31:24 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3 lines
Fix another && || confusion, from Kurt Schreiner, thanks!

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Aug 17 22:23:07 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
Don't use || if you need &&.

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

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Jun 4 22:39:33 2006 UTC (18 years, 10 months ago) by elad
Branches: MAIN
CVS tags: chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
another netstat fix, Kurt Schreiner. thanx!

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Jun 4 20:01:14 2006 UTC (18 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
fix logic; from Kurt Schreiner

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun May 28 16:51:40 2006 UTC (18 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +14 -9 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.52: download - view: text, markup, annotated - select for diffs
Thu May 18 09:05:51 2006 UTC (18 years, 11 months ago) by liamjfoy
Branches: MAIN
Branch point for: chap-midi
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -2 lines
Integrate Common Address Redundancy Procotol (CARP) from OpenBSD

'pseudo-device	carp'

Thanks to: joerg@ christos@ riz@ and others who tested
Ok: core@

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Sep 14 15:35:26 2005 UTC (19 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
make bpf stats #ifndef SMALL,
fixes build of x_netstat

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Sep 2 22:23:13 2005 UTC (19 years, 7 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
Request process information using sysctl(3) and not kvm(3) since bpf(4)
statistics and peers are only available using the former.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Aug 4 19:39:40 2005 UTC (19 years, 8 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +16 -3 lines
Implemented the userland part of the BPF statistics and BPF peers,
net.bpf.stats and net.bpf.peers sysctls respectively. netstat(1) now
has an additional syntax:
	netstat [-s] [-B] [-I Interface]

Only the super user can see a list of BPF peers with the following command:
# netstat -B
Active BPF peers
PID     Int     Recv     Drop     Capt     Flags  Bufsize  Comm
4941    lo0     0        0        0        I--S-  262144   tcpdump
252     ex0     19668    0        5        I-RS-  32768    dhclient

And every user can see the BPF statistics with:
$ netstat -s -B
bpf:
        19669 total packets received
        5 total packets captured
        0 total packets dropped

This idea came from FreeBSD (Christian S.J. Peron) but, currently, they
doen't have a userland utility in the base system to read the sysctls.

Reviewed by: christos@

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Oct 30 20:56:20 2004 UTC (20 years, 5 months ago) by dsl
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.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
Add (unsigned char) cast to ctype functions

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Sep 4 23:35:43 2004 UTC (20 years, 7 months ago) by manu
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +6 -2 lines
IPv4 PIM support, from the submission of Pavlin Radoslavov on tech-net@

Revision 1.43.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 14 10:19:17 2004 UTC (20 years, 9 months ago) by tron
Branches: netbsd-2-0
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-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
Diff to: previous 1.43.2.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.2: +2 -3 lines
Pull up revision 1.46 (requested by jonathan in ticket #647):
Fix two stupid bugs I introduced with stats for  fast-ipsec:
1. Pass the caller-supplied protocol name down through ipsec_switch().
2. Remove my poor attempt to print fast-ipsec stats automagically for
`netstat -s'.  The previous code would print (fast)IPsec per-protocol
stats even for 'netstat', which is just wrong.
A better fix would be to enumerate the sub-"protocols" under IPsec;
but first lets fix the broken behaviour now, for a pullup to 2.0.

Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Wed Jul 14 09:31:32 2004 UTC (20 years, 9 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.1: +1 -1 lines
Pull up revision 1.45 (requested by jonathan in ticket #647):
Temporary hack to fix ipsec stats lossage. Atatat, are you listening?

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Jun 27 01:10:54 2004 UTC (20 years, 9 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -3 lines
Fix two stupid bugs I introduced with stats for  fast-ipsec:

1. Pass the caller-supplied protocol name down through ipsec_switch().

2. Remove my poor attempt to print fast-ipsec stats automagically for
`netstat -s'.  The previous code would print (fast)IPsec per-protocol
stats even for 'netstat', which is just wrong.

A better fix would be to enumerate the sub-"protocols" under IPsec;
but first lets fix the broken behaviour now, for a pullup to 2.0.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jun 6 17:11:48 2004 UTC (20 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
Temporary hack to fix ipsec stats lossage. Atatat, are you listening?

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Mon May 10 15:00:06 2004 UTC (20 years, 11 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -4 lines
Pull up revision 1.44 (requested by jonathan in ticket #280):
Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.
New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)
Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)
	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)
	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)
	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)
Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":
New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)
Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri May 7 00:55:15 2004 UTC (20 years, 11 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -4 lines
Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.

New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)

Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)

	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)

	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)

	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)

Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":

New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)

Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Sep 4 09:23:40 2003 UTC (21 years, 7 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +32 -36 lines
synchronize w/ inpcb/in6pcb change

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:15:20 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +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.41: download - view: text, markup, annotated - select for diffs
Fri Apr 18 03:21:01 2003 UTC (22 years ago) by lukem
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -2 lines
clear errno before strto(u)l() if we're going to test it for ERANGE afterwards

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Feb 26 06:31:21 2003 UTC (22 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -3 lines
Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Feb 4 01:22:08 2003 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +14 -2 lines
Update for callout changes, and show TCP timers in relative, rather
than absolute ticks.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Jul 23 23:34:39 2002 UTC (22 years, 9 months ago) by enami
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -2 lines
Add more software intrq.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jul 3 01:42:59 2002 UTC (22 years, 9 months ago) by enami
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +75 -5 lines
Introduce -q flag to print some information (like number of packets dropped
due to queue full) about software interrupt queues such as ipintrq.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Jul 2 21:34:18 2002 UTC (22 years, 9 months ago) by soren
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +10 -6 lines
Sync SYNOPSIS and usage() with reality.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jun 11 06:06:19 2002 UTC (22 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
err/errx/warn/warnx do not need \n at the end

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Oct 18 09:26:16 2001 UTC (23 years, 6 months ago) by itojun
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.33: preferred, colored
Changes since revision 1.33: +6 -2 lines
print rip6stat.  sync with kame

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon May 28 04:22:56 2001 UTC (23 years, 11 months ago) by assar
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +8 -5 lines
add `-s' that prints port numbers symbolically but addresses numerically

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

Revision 1.27.4.2: download - view: text, markup, annotated - select for diffs
Mon Oct 30 22:47:48 2000 UTC (24 years, 5 months 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
Diff to: previous 1.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.4.1: +2 -4 lines
Pullup 1.31 by patch [itojun]:
more fix to "pfkey printed twice" problem.  PR 11323 from ura.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Oct 28 03:53:33 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4 lines
more fix to "pfkey printed twice" problem.  PR 11323 from ura.

Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 5 14:54:33 2000 UTC (24 years, 6 months ago) by itojun
Branches: netbsd-1-5
CVS tags: netbsd-1-5-BETA
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -2 lines
pullup 1.29 -> 1.30 (approved by releng-1-5)
don't print pfkey statistics twice.  from uep

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Oct 5 03:22:59 2000 UTC (24 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -2 lines
don't print pfkey statistics twice.  from uep

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Aug 15 20:24:58 2000 UTC (24 years, 8 months ago) by jhawk
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +15 -2 lines
Add kernel counters for arp events, displayable with netstat -s -f arp

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

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Apr 14 06:11:09 2000 UTC (25 years ago) by simonb
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -4 lines
Don't declare 'extern opt*' getopt variables.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Feb 26 09:55:24 2000 UTC (25 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +21 -2 lines
revise IPsec, pfkey, IPv6 multicast and IPv6 statistics.  (sync with kame)

Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:37:06 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +49 -34 lines
Pull up to last week's -current.

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

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Sep 15 20:12:18 1999 UTC (25 years, 7 months ago) by is
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +7 -3 lines
Add -L option. netstat -r -L behaves like 4.3BSD netstat -r, that is, it
does not show route table entries pointing to link level addresses (ARP
entries or IPv6 neighbour discovery entries).

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jul 1 18:40:36 1999 UTC (25 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +103 -11 lines
make netstat IPv6-ready.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Mar 14 18:30:04 1999 UTC (26 years, 1 month ago) by kristerw
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
There is no -h flag. From OpenBSD.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Feb 27 17:37:24 1999 UTC (26 years, 1 month ago) by sommerfe
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +8 -3 lines
fix PR7057: division by zero if no mbufs allocated
fix PR7059 (partial): mbuf cluster counts were based on counters which
are no longer maintained.
(full fix will involve renaming the now-unused fields in mclstat in mbuf.h)

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Feb 8 11:34:36 1999 UTC (26 years, 2 months ago) by explorer
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
fix dumping of pcbs

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 19 07:32:39 1999 UTC (26 years, 3 months ago) by cgd
Branches: netbsd-1-3
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +15 -4 lines
pull up rev 1.18 from trunk (mrg)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Jan 15 19:06:25 1999 UTC (26 years, 3 months ago) by kml
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -4 lines
Added a verbose flag for route display that will show
the various route metrics.

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

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jul 18 05:04:10 1998 UTC (26 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -6 lines
use AF_LOCAL instead of AF_UNIX. support -f local as synonym for -f unix

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

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jul 6 07:50:19 1998 UTC (26 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +18 -9 lines
- change setgid kmem programs (that lend themselves to this) so setegid(getgid())
  and the top, and then set the effective gid back to kmem around the call to
  kvm_openfiles().  this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
  kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Jun 3 02:41:11 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +46 -19 lines
Add an option to dump the contents of a PCB at the specified address, and
implement this for TCP.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Mar 19 02:42:57 1998 UTC (27 years, 1 month ago) by kml
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -3 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.12: download - view: text, markup, annotated - select for diffs
Sun Oct 19 05:50:03 1997 UTC (27 years, 6 months 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.11: preferred, colored
Changes since revision 1.11: +10 -9 lines
fix up .Nm usage, getopt returns -1 not EOF

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Apr 3 04:46:48 1997 UTC (28 years ago) by christos
Branches: MAIN
CVS tags: SYN_cache_cur_base, SYN_cache_branch
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +31 -11 lines
- netatalk additions
- printf format fixes
- minor prototype cleanups

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Feb 28 00:14:21 1997 UTC (28 years, 1 month ago) by jonathan
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +8 -3 lines
Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".

Add code to netstat to use libkvm to for kernel variables "mclbytes"
and "msize', and if found, use those for netstat -m rather than
compiled-in defaults.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue May 7 02:55:02 1996 UTC (28 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +17 -26 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.8: download - view: text, markup, annotated - select for diffs
Tue Oct 3 21:42:40 1995 UTC (29 years, 6 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.7: preferred, colored
Changes since revision 1.7: +7 -2 lines
New-style RCS ids.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jun 12 03:03:11 1995 UTC (29 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +14 -11 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:34:59 1994 UTC (30 years, 6 months ago) by mycroft
Branches: CSRG
CVS tags: lite-2, lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +198 -197 lines
Import original 4.4-Lite version.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri May 13 08:08:14 1994 UTC (30 years, 11 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.5: preferred, colored
Changes since revision 1.5: +183 -210 lines
Clean up import.

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

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 11 19:42:53 1994 UTC (31 years, 3 months ago) by brezak
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +36 -9 lines
Incorporate changes for IP mcast and IGMP from cmaeda@cs.washington.edu.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Dec 22 04:00:31 1993 UTC (31 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
fix from James Jegers <jimj@miller.cs.uwm.edu>.  Netstat -w didn't work
(and would seg fault, too).  solution: tell getopt to expect an argument,
and set the appropriate flags when -w is given.

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

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, 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>