The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.84 / (download) - annotate - [select for diffs], Fri Oct 28 05:27:17 2022 UTC (15 months, 4 weeks ago) by ozaki-r
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.83: +16 -14 lines
Diff to previous 1.83 (colored)

Adjust userland commands for struct inpcb separation

Only kvm users are affected.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Oct 28 05:24:07 2022 UTC (15 months, 4 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.82: +22 -22 lines
Diff to previous 1.82 (colored)

Adjust userland commands for struct inpcb integration

Only kvm users are affected.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Sep 21 07:59:19 2022 UTC (17 months ago) by msaitoh
Branch: MAIN
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored)

s/u_quad_t/uint64_t/. No functional change.

Revision 1.69.6.1 / (download) - annotate - [select for diffs], Mon Sep 12 14:29:19 2022 UTC (17 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.69: +198 -165 lines
Diff to previous 1.69 (colored) next main 1.70 (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.72.2.2 / (download) - annotate - [select for diffs], Mon Sep 12 14:23:41 2022 UTC (17 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.72.2.1: +191 -158 lines
Diff to previous 1.72.2.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (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.81 / (download) - annotate - [select for diffs], Fri Sep 2 06:25:43 2022 UTC (17 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.80: +84 -53 lines
Diff to previous 1.80 (colored)

KNF. No functional change.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Sep 1 10:10:20 2022 UTC (17 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.79: +114 -109 lines
Diff to previous 1.79 (colored)

KNF. No functional change.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Oct 30 11:23:07 2021 UTC (2 years, 3 months ago) by nia
Branch: MAIN
Changes since 1.78: +7 -9 lines
Diff to previous 1.78 (colored)

netstat(1): convert malloc(x * y) and realloc(x * y) to reallocarr

Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 10 21:52:18 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

usr.bin: remove unnecessary lint comment CONSTCOND

Since 2021-01-31, lint no longer warns about 'do ... while (0)'.

No functional change.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Aug 28 07:23:48 2020 UTC (3 years, 5 months ago) by ozaki-r
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.76: +8 -8 lines
Diff to previous 1.76 (colored)

netstat: strengthen against kernel changes

netstat uses sysctlbyname to get counter data from the kernel.
sysctlbyname fails with ENOMEM if actual counter data in the kernel is
larger than a passed buffer.  netstat just skips showing counters of a
category if sysctlbyname fails, so if we added new counters of the
category to the kernel, nestat shows nothing for the category.

Fortunately sysctlbyname fills data as much as possible even if a passed
buffer is short.  So we can allow netstat to show the filled data anyway
if sysctlbyname fails with ENOMEM.

Note that this backcompat mechanism works only if new counters are
appended, and doesn't work if new counters are inserted into the middle
or counters are moved.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Aug 28 06:34:17 2020 UTC (3 years, 5 months ago) by ozaki-r
Branch: MAIN
Changes since 1.75: +9 -2 lines
Diff to previous 1.75 (colored)

netstat: support new packet counters

Revision 1.75 / (download) - annotate - [select for diffs], Thu Aug 6 07:38:54 2020 UTC (3 years, 6 months ago) by knakahara
Branch: MAIN
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored)

add missing {IP,IP6}_STAT_NOIPSEC to netstat.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Apr 23 00:24:16 2020 UTC (3 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.73: +5 -5 lines
Diff to previous 1.73 (colored)

sockb is only used locally, so move it into the function

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:45 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.71.2.1: +8 -8 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Mon Aug 19 15:56:49 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored)

Pull up following revision(s) (requested by kamil in ticket #94):

	usr.bin/netstat/netstat_rumpops.c: revision 1.2
	usr.bin/netstat/netstat_hostops.c: revision 1.2
	usr.bin/netstat/inet6.c: revision 1.73
	usr.bin/netstat/bpf.c: revision 1.14
	usr.bin/netstat/Makefile: revision 1.46
	usr.bin/netstat/prog_ops.h: revision 1.3
	usr.bin/netstat/pfsync.c: revision 1.2
	usr.bin/netstat/pfkey.c: revision 1.2
	usr.bin/netstat/fast_ipsec.c: revision 1.23
	usr.bin/netstat/atalk.c: revision 1.17
	usr.bin/netstat/inet.c: revision 1.110

netstat: Add indirection of symbols to remove clash with sanitizers

Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname, sysctlgetmibinfo and sysctlnametomib.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Aug 18 04:14:40 2019 UTC (4 years, 6 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored)

netstat: Add indirection of symbols to remove clash with sanitizers

Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname, sysctlgetmibinfo and sysctlnametomib.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:22 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Mon May 13 07:48:42 2019 UTC (4 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (colored)

Show the number of packets dropped by pfil

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:18 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.70: +2 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Thu May 3 07:13:48 2018 UTC (5 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-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
Branch point for: phil-wifi
Changes since 1.70: +2 -3 lines
Diff to previous 1.70 (colored)

Remove now unused tcpip.h includes. Some were already unused before.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Dec 19 17:05:15 2017 UTC (6 years, 2 months ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.69: +11 -11 lines
Diff to previous 1.69 (colored)

Add names of a few more ICMPv6 messages, from RFC6275 (Mobile IPv6)
and RFC4286 (Multicast Router Discovery.) and as shown in the IANA
parameters page available at:
  https://www.ietf.org/assignments/icmpv6-parameters/icmpv6-parameters.txt

Also make the array be explicitly 256 entries long, one for each possible
code, which will detect attempts to insert names without deleting the
place holder (and mean a good solid NULL de-ref if too many place holders
are deleted, rather than just random results.)

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:58 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.68: +9 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.69 / (download) - annotate - [select for diffs], Sat Dec 17 09:12:22 2016 UTC (7 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.68: +9 -3 lines
Diff to previous 1.68 (colored)

Print previously missing fields from a TCP6 PCB.

Revision 1.59.6.2 / (download) - annotate - [select for diffs], Wed Feb 11 14:04:19 2015 UTC (9 years ago) by martin
Branch: netbsd-6
Changes since 1.59.6.1: +6 -4 lines
Diff to previous 1.59.6.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Pull up following revision(s) (requested by christos in ticket #1249):
	usr.bin/netstat/inet.c: revision 1.106
	usr.bin/netstat/inet6.c: revision 1.68
Allocate the right size for pcb blocks.

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Wed Feb 11 08:29:56 2015 UTC (9 years ago) by snj
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.66: +6 -4 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by christos in ticket #503):
	usr.bin/netstat/inet.c: revision 1.106
	usr.bin/netstat/inet6.c: revision 1.68
Allocate the right size for pcb blocks.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Feb 8 15:09:45 2015 UTC (9 years 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.67: +6 -4 lines
Diff to previous 1.67 (colored)

Allocate the right size for pcb blocks.
XXX: pullup-7!

Revision 1.67 / (download) - annotate - [select for diffs], Sat Feb 7 19:36:06 2015 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.66: +10 -5 lines
Diff to previous 1.66 (colored)

print the timer flags.

Revision 1.59.10.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:01 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.59.10.1: +70 -63 lines
Diff to previous 1.59.10.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Thu May 22 11:42:46 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.59: +167 -152 lines
Diff to previous 1.59 (colored) next main 1.60 (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.66 / (download) - annotate - [select for diffs], Sat Nov 23 22:01:12 2013 UTC (10 years, 3 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.65: +70 -56 lines
Diff to previous 1.65 (colored)

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.65 / (download) - annotate - [select for diffs], Sat Oct 19 15:56:06 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.64: +4 -3 lines
Diff to previous 1.64 (colored)

use correct function and symbolic constants

Revision 1.64 / (download) - annotate - [select for diffs], Sat Oct 19 00:28:38 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.63: +3 -13 lines
Diff to previous 1.63 (colored)

use new scopeid functions

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 18 20:26:45 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.62: +6 -4 lines
Diff to previous 1.62 (colored)

- avoid pointer gymnastics
- remove unused variables

Revision 1.50.6.1.6.1 / (download) - annotate - [select for diffs], Tue Jul 30 02:26:10 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE
Changes since 1.50.6.1: +127 -120 lines
Diff to previous 1.50.6.1 (colored) next main 1.50.6.2 (colored)

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.50.6.1.10.1 / (download) - annotate - [select for diffs], Tue Jul 30 02:24:19 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: netbsd-5-2
CVS Tags: netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Changes since 1.50.6.1: +127 -120 lines
Diff to previous 1.50.6.1 (colored) next main 1.50.6.2 (colored)

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.50.6.2 / (download) - annotate - [select for diffs], Tue Jul 30 02:22:14 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: netbsd-5
Changes since 1.50.6.1: +127 -120 lines
Diff to previous 1.50.6.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

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.59.12.1 / (download) - annotate - [select for diffs], Mon Jul 29 07:10:13 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: 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
Changes since 1.59: +96 -88 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

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.59.16.1 / (download) - annotate - [select for diffs], Mon Jul 29 07:06:37 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: 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
Changes since 1.59: +96 -88 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

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.59.6.1 / (download) - annotate - [select for diffs], Mon Jul 29 06:11:02 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.59: +96 -88 lines
Diff to previous 1.59 (colored)

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.59.10.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:01 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.59: +98 -90 lines
Diff to previous 1.59 (colored)

resync from head

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jun 20 10:43:18 2013 UTC (10 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Not all pointers are 64bit - use uintptr_t instead of uint64_t.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jun 19 21:12:03 2013 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.60: +96 -88 lines
Diff to previous 1.60 (colored)

Don't use -P as a kmem printer, verify that the address points to a pcb first!

Revision 1.60 / (download) - annotate - [select for diffs], Fri Mar 1 18:26:11 2013 UTC (10 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored)

Retire OSI network stack. OK core@

Revision 1.59 / (download) - annotate - [select for diffs], Tue May 24 18:07:11 2011 UTC (12 years, 9 months ago) by spz
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

RA flood mitigation via a limit on accepted routes:
- introduce a limit for the routes accepted via IPv6 Router Advertisement:
  a common 2 interface client will have 6, the default limit is 100 and
  can be adjusted via sysctl
- report the current number of routes installed via RA via sysctl
- count discarded route additions. Note that one RA message is two routes.
  This is at present only across all interfaces even though per-interface
  would be more useful, since the per-interface structure complies to RFC2466
- bump kernel version due to the previous change
- adjust netstat to use the new value (with netstat -p icmp6)

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 11 22:21:59 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.57: +6 -5 lines
Diff to previous 1.57 (colored)

Suppress whitespace at EOL to fix lib/librumphijack/t_tcpip.

Revision 1.57 / (download) - annotate - [select for diffs], Wed May 11 15:08:59 2011 UTC (12 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.56: +5 -2 lines
Diff to previous 1.56 (colored)

use getmicrouptime(9) rather than microtime(9) for TIME_WAIT duration
calculation, because this doesn't get confused by system time changes,
and uses less CPU cycles
reviewed by dyoung

Revision 1.56 / (download) - annotate - [select for diffs], Wed May 4 00:55:19 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)

Don't use type qualifier 'register'.

Revision 1.55 / (download) - annotate - [select for diffs], Tue May 3 23:36:26 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.54: +14 -7 lines
Diff to previous 1.54 (colored)

Do not display expired or reclaimed vestigial TIME_WAIT entries.

Revision 1.54 / (download) - annotate - [select for diffs], Tue May 3 18:28:46 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.53: +77 -21 lines
Diff to previous 1.53 (colored)

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.53 / (download) - annotate - [select for diffs], Mon Dec 13 21:15:30 2010 UTC (13 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.52: +6 -5 lines
Diff to previous 1.52 (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.50.8.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:59 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.50: +28 -25 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with HEAD.

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

Revision 1.52 / (download) - annotate - [select for diffs], Sun Apr 12 16:08:37 2009 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.51: +24 -24 lines
Diff to previous 1.51 (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.40.2.1 / (download) - annotate - [select for diffs], Tue Mar 31 17:56:41 2009 UTC (14 years, 11 months ago) by bouyer
Branch: netbsd-4
Changes since 1.40: +6 -3 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull up following revision(s) (requested by dholland in ticket #1292):
	usr.bin/netstat/inet.c: revision 1.89
	usr.bin/netstat/inet6.c: revision 1.51
	usr.bin/netstat/iso.c: revision 1.31
Make netstat handle -a properly; that is, don't show unconnected
listener sockets unless -a was given. (It was checking the local
address instead of the remote address for being INADDR_ANY or
equivalent.)
PR 38093 from Dieter Roelants; I adjusted the patch a little.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Thu Mar 26 17:14:41 2009 UTC (14 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: 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-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
Branch point for: netbsd-5-2, netbsd-5-1
Changes since 1.50: +6 -3 lines
Diff to previous 1.50 (colored)

Pull up following revision(s) (requested by dholland in ticket #608):
	usr.bin/netstat/inet.c: revision 1.89
	usr.bin/netstat/inet6.c: revision 1.51
	usr.bin/netstat/iso.c: revision 1.31
Make netstat handle -a properly; that is, don't show unconnected
listener sockets unless -a was given. (It was checking the local
address instead of the remote address for being INADDR_ANY or
equivalent.)
PR 38093 from Dieter Roelants; I adjusted the patch a little.
This needs pullups for both -4 and -5.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Feb 22 07:43:01 2009 UTC (15 years ago) by dholland
Branch: MAIN
Changes since 1.50: +6 -3 lines
Diff to previous 1.50 (colored)

Make netstat handle -a properly; that is, don't show unconnected
listener sockets unless -a was given. (It was checking the local
address instead of the remote address for being INADDR_ANY or
equivalent.)

PR 38093 from Dieter Roelants; I adjusted the patch a little.

This needs pullups for both -4 and -5.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:07 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.49: +20 -26 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Apr 24 04:09:27 2008 UTC (15 years, 10 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-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: netbsd-5, jym-xensuspend
Changes since 1.49: +20 -26 lines
Diff to previous 1.49 (colored)

Note which things are not available by KVM, and print a nice message
stating so if someone specifically asks for it.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Apr 15 05:40:15 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.48: +14 -14 lines
Diff to previous 1.48 (colored)

Make pim6 stats per-cpu.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 15 05:13:37 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +19 -19 lines
Diff to previous 1.47 (colored)

Make raw6 stats per-cpu.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Apr 15 04:50:05 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +13 -27 lines
Diff to previous 1.46 (colored)

Use ANSI function decls throughout.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Apr 15 04:43:25 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +26 -28 lines
Diff to previous 1.45 (colored)

Make udp6 stats per-cpu.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Apr 8 23:37:43 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +63 -65 lines
Diff to previous 1.44 (colored)

Change IPv6 stats from a structure to an array of uint64_t's.

Note: This is ABI-compatible with the old ip6stat structure; old netstat
binaries will continue to work properly.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 8 15:04:35 2008 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +46 -48 lines
Diff to previous 1.43 (colored)

Change ICMP6 stats from a structure to an array of uint64_t's.

Note: This is ABI-compatible with the old icmp6stat structure; old netstat
binaries will continue to work properly.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:49:02 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Sat Feb 16 07:16:01 2008 UTC (16 years ago) by matt
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Fix more -combine fallout.  (mismatched definitions)

Revision 1.42 / (download) - annotate - [select for diffs], Wed Mar 7 22:22:50 2007 UTC (16 years, 11 months ago) by liamjfoy
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored)

Add new IPv6 Fast Forward statistics

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jan 17 00:21:43 2007 UTC (17 years, 1 month ago) by hubertf
Branch: MAIN
Changes since 1.40: +2 -3 lines
Diff to previous 1.40 (colored)

Remove duplicate #includes
From Slava Semushin <slava.semushin@gmail.com>, via private mail

Revision 1.40 / (download) - annotate - [select for diffs], Fri Sep 22 23:21:52 2006 UTC (17 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: 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
Branch point for: netbsd-4
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

PR/31347: Geoff C. Wing: netstat err message is ambiguous about cause
Applied patch, thanks!

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:17:07 2006 UTC (17 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.36: +18 -12 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Wed May 31 13:26:17 2006 UTC (17 years, 9 months ago) by rpaulo
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.38: +8 -3 lines
Diff to previous 1.38 (colored)

Don't print an error if kernel doesn't have INET6 support.
By Jukka Salmi on current-users.

Revision 1.38 / (download) - annotate - [select for diffs], Sun May 28 16:51:40 2006 UTC (17 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.37: +10 -10 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Sun May 21 21:01:56 2006 UTC (17 years, 9 months ago) by liamjfoy
Branch: MAIN
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored)

check if malloc(3) failed

ok joerg@

Revision 1.36 / (download) - annotate - [select for diffs], Sun Aug 28 21:06:57 2005 UTC (18 years, 6 months ago) by rpaulo
Branch: MAIN
Branch point for: chap-midi
Changes since 1.35: +45 -14 lines
Diff to previous 1.35 (colored)

Use net.inet6.{ip6,udp6,pim6,raw6}.stats for live systems.

Reviewed by Elad Efrat.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Aug 28 16:12:35 2005 UTC (18 years, 6 months ago) by rpaulo
Branch: MAIN
Changes since 1.34: +166 -48 lines
Diff to previous 1.34 (colored)

Use net.inet6.tcp6.pcblist, net.inet6.tcp6.stats (not implemented yet) and
net.inet6.icmp6.stats if we are gathering information from a live system.

Reviewed by Elad Efrat.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 4 19:41:28 2005 UTC (18 years, 6 months ago) by rpaulo
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

Added #include <kvm.h> since netstat.h, which is included too, needs it.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Feb 13 03:15:18 2005 UTC (19 years ago) by atatat
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.32: +3 -3 lines
Diff to previous 1.32 (colored)

print the proper pointer for the pcb address.  otherwise, all the udp6
pcb addresses are the same as unrelated udp pcb addresses.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Nov 16 05:59:32 2004 UTC (19 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.31: +2 -6 lines
Diff to previous 1.31 (colored)

NI_WITHSCOPEID was not picked up by IETF standardization process.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 6 06:11:48 2003 UTC (20 years, 3 months ago) by itojun
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.30: +5 -4 lines
Diff to previous 1.30 (colored)

handle KAME scopeid hack for multicast addr.  Matthias Drochner

Revision 1.30 / (download) - annotate - [select for diffs], Fri Sep 12 10:43:42 2003 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.29: +3 -5 lines
Diff to previous 1.29 (colored)

fix PR bin/22739 (netstat -nlv -f inet6 weird)

Revision 1.29 / (download) - annotate - [select for diffs], Thu Sep 4 09:23:39 2003 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.28: +18 -14 lines
Diff to previous 1.28 (colored)

synchronize w/ inpcb/in6pcb change

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 7 11:15:19 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.27: +3 -7 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Wed May 14 23:36:32 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

use proper #ifdef to determine behavior (__KAME__)

Revision 1.26 / (download) - annotate - [select for diffs], Sat Mar 22 15:18:36 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

it's not necessary to limit the service name artificially to 8 characters
in inet*print() - only first 'width' characters of the 'host.service'
string would be printed anyway, so allow full service name if string would fit

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 26 17:06:08 2002 UTC (21 years, 4 months ago) by grant
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

fix typo, from sm@resistor.net in misc/18816.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 9 02:44:55 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

use strchr, not index

Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 18 09:26:16 2001 UTC (22 years, 4 months ago) by itojun
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.22: +40 -2 lines
Diff to previous 1.22 (colored)

print rip6stat.  sync with kame

Revision 1.22 / (download) - annotate - [select for diffs], Mon Sep 10 14:25:12 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Make the PCB address printing look like the IPv4 version.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jun 13 02:50:25 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

typo

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 28 04:22:55 2001 UTC (22 years, 9 months ago) by assar
Branch: MAIN
Changes since 1.19: +7 -8 lines
Diff to previous 1.19 (colored)

add `-s' that prints port numbers symbolically but addresses numerically

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 6 05:10:28 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.18: +13 -11 lines
Diff to previous 1.18 (colored)

pedant changes for strcpy/sprintf.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Mar 20 17:02:33 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.17: +8 -3 lines
Diff to previous 1.17 (colored)

add sctp (maybe we should add it to /etc/protocols instead?)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 7 08:59:49 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.16: +18 -12 lines
Diff to previous 1.16 (colored)

during ip6/icmp6 inbound packet processing, do not call log() nor printf() in
normal operation (/var can get filled up by flodding bogus packets).
sysctl net.inet6.icmp6.nd6_debug will turn on diagnostic messages.
(#define ND6_DEBUG will turn it on by default)

improve stats in ND6 code.

lots of synchronziation with kame (including comments and cometic ones).

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 14 20:38:10 2000 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.15: +90 -248 lines
Diff to previous 1.15 (colored)

try to lookup /etc/protocols for histogram

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 11 17:52:43 2000 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

typo in -s message

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 23 03:46:23 2000 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

count path MTU changes.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Wed Oct 18 01:32:48 2000 UTC (23 years, 4 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.9.2.1: +10 -8 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 11 14:46:14 2000 UTC (23 years, 4 months ago) by is
Branch: MAIN
Changes since 1.12: +10 -8 lines
Diff to previous 1.12 (colored)

More format string cleanup by sommerfeld.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 13 18:41:38 2000 UTC (23 years, 6 months ago) by jhawk
Branch: MAIN
Changes since 1.11: +6 -8 lines
Diff to previous 1.11 (colored)

Fix netstat -ss handling for a bunch of ISO cases, so that
zero values are not printed.
"tp:" still needs some work, though.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 14:08:45 2000 UTC (23 years, 7 months ago) by itojun
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.9: +2 -37 lines
Diff to previous 1.9 (colored)

pullup 1.10 -> 1.11 (approved by releng-1-5)
do not print m_pulldown statistics.  it is too experimental and
belongs to kame tree only (not for *bsd tree).

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 13 03:53:03 2000 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.10: +2 -37 lines
Diff to previous 1.10 (colored)

do not print m_pulldown statistics.  it is too experimental and
belongs to kame tree only (not for *bsd tree).

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 6 12:40:19 2000 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.9: +24 -3 lines
Diff to previous 1.9 (colored)

more stats.  from kame

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Fri Jun 23 16:39:49 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.8: +5 -3 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 16 02:08:40 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.8: +5 -3 lines
Diff to previous 1.8 (colored)

print # of packets filtered by icmp6 rate limitation

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 17 11:54:48 2000 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

s/icmp/icmp6/ in message

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 26 09:55:24 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.6: +149 -20 lines
Diff to previous 1.6 (colored)

revise IPsec, pfkey, IPv6 multicast and IPv6 statistics.  (sync with kame)

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:37:06 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.3: +263 -94 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up to last week's -current.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 16 00:58:17 1999 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.5: +6 -4 lines
Diff to previous 1.5 (colored)

Make this compile on the Alpha again.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 13 15:22:55 1999 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.4: +174 -16 lines
Diff to previous 1.4 (colored)

per-interface statistics.
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)

Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 19 10:44:33 1999 UTC (24 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.3: +89 -80 lines
Diff to previous 1.3 (colored)

Change printf formats for 64bit counters.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 30 10:31:22 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)

do not include netinet/in6_systm.h, which has been empty for a while.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 6 13:18:46 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

add NetBSD RCS ID.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 1 18:40:36 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN

make netstat IPv6-ready.

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




CVSweb <webmaster@jp.NetBSD.org>