lukem
d5a0caad3b
Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare).
...
Fix probable bug with numeric printing of anon ports when using sysctl.
2009-04-12 16:08:37 +00:00
dholland
e203f53315
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.
2009-02-22 07:43:01 +00:00
thorpej
40edcfedc2
Note which things are not available by KVM, and print a nice message
...
stating so if someone specifically asks for it.
2008-04-24 04:09:27 +00:00
thorpej
0e499be12d
Make pim6 stats per-cpu.
2008-04-15 05:40:15 +00:00
thorpej
16497cdf28
Make raw6 stats per-cpu.
2008-04-15 05:13:37 +00:00
thorpej
db098952cf
Use ANSI function decls throughout.
2008-04-15 04:50:05 +00:00
thorpej
c2da059bc6
Make udp6 stats per-cpu.
2008-04-15 04:43:25 +00:00
thorpej
3f466bce48
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.
2008-04-08 23:37:43 +00:00
thorpej
aa8724ff7b
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.
2008-04-08 15:04:35 +00:00
matt
3b1e7dbd0b
Fix more -combine fallout. (mismatched definitions)
2008-02-16 07:16:01 +00:00
liamjfoy
5e73ba0829
Add new IPv6 Fast Forward statistics
2007-03-07 22:22:50 +00:00
hubertf
48b31403c5
Remove duplicate #includes
...
From Slava Semushin <slava.semushin@gmail.com>, via private mail
2007-01-17 00:21:43 +00:00
elad
a81bf90a94
PR/31347: Geoff C. Wing: netstat err message is ambiguous about cause
...
Applied patch, thanks!
2006-09-22 23:21:52 +00:00
rpaulo
088720fe4b
Don't print an error if kernel doesn't have INET6 support.
...
By Jukka Salmi on current-users.
2006-05-31 13:26:17 +00:00
elad
5d7aa1a613
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...
2006-05-28 16:51:40 +00:00
liamjfoy
362a260c6d
check if malloc(3) failed
...
ok joerg@
2006-05-21 21:01:55 +00:00
rpaulo
c5a8fe81ae
Use net.inet6.{ip6,udp6,pim6,raw6}.stats for live systems.
...
Reviewed by Elad Efrat.
2005-08-28 21:06:57 +00:00
rpaulo
51345e62d3
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.
2005-08-28 16:12:35 +00:00
rpaulo
9ce7ce6bf0
Added #include <kvm.h> since netstat.h, which is included too, needs it.
2005-08-04 19:41:28 +00:00
atatat
61ae0cbaf1
print the proper pointer for the pcb address. otherwise, all the udp6
...
pcb addresses are the same as unrelated udp pcb addresses.
2005-02-13 03:15:18 +00:00
itojun
b95181fc9b
NI_WITHSCOPEID was not picked up by IETF standardization process.
2004-11-16 05:59:32 +00:00
itojun
9a941e2d01
handle KAME scopeid hack for multicast addr. Matthias Drochner
2003-11-06 06:11:48 +00:00
itojun
070ac19762
fix PR bin/22739 (netstat -nlv -f inet6 weird)
2003-09-12 10:43:42 +00:00
itojun
0162be23d0
synchronize w/ inpcb/in6pcb change
2003-09-04 09:23:35 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun
47d22404d4
use proper #ifdef to determine behavior (__KAME__)
2003-05-14 23:36:32 +00:00
jdolecek
842b4adcdc
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
2003-03-22 15:18:36 +00:00
grant
b1aed1c393
fix typo, from sm@resistor.net in misc/18816.
2002-10-26 17:06:08 +00:00
itojun
95c1349e5d
use strchr, not index
2002-06-09 02:44:55 +00:00
itojun
c868e666a2
print rip6stat. sync with kame
2001-10-18 09:26:16 +00:00
thorpej
dc5de996f4
Make the PCB address printing look like the IPv4 version.
2001-09-10 14:25:12 +00:00
itojun
1dca70a51b
typo
2001-06-13 02:50:25 +00:00
assar
7aedc79d5e
add `-s' that prints port numbers symbolically but addresses numerically
2001-05-28 04:22:55 +00:00
itojun
ea6a7c4787
pedant changes for strcpy/sprintf.
2001-04-06 05:10:28 +00:00
itojun
09afaac4e2
add sctp (maybe we should add it to /etc/protocols instead?)
2001-03-20 17:02:33 +00:00
itojun
22b473e0f6
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).
2001-02-07 08:59:47 +00:00
itojun
b206900063
try to lookup /etc/protocols for histogram
2000-12-14 20:38:10 +00:00
itojun
8b398d8448
typo in -s message
2000-12-11 17:52:43 +00:00
itojun
3029ed7874
count path MTU changes.
2000-10-23 03:46:23 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
jhawk
a80c6e8208
Fix netstat -ss handling for a bunch of ISO cases, so that
...
zero values are not printed.
"tp:" still needs some work, though.
2000-08-13 18:41:38 +00:00
itojun
e233a99759
do not print m_pulldown statistics. it is too experimental and
...
belongs to kame tree only (not for *bsd tree).
2000-07-13 03:53:03 +00:00
itojun
5872028b21
more stats. from kame
2000-07-06 12:40:19 +00:00
itojun
ff5f8a8828
print # of packets filtered by icmp6 rate limitation
2000-06-16 02:08:40 +00:00
itojun
92e7c0931d
s/icmp/icmp6/ in message
2000-05-17 11:54:48 +00:00
itojun
9da359bbec
revise IPsec, pfkey, IPv6 multicast and IPv6 statistics. (sync with kame)
2000-02-26 09:55:24 +00:00
thorpej
2b9d9a9499
Make this compile on the Alpha again.
1999-12-16 00:58:17 +00:00
itojun
033763d6c9
per-interface statistics.
...
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)
1999-12-13 15:22:55 +00:00
bouyer
f7e8e4aebd
Change printf formats for 64bit counters.
1999-11-19 10:44:33 +00:00
itojun
5413fa8362
do not include netinet/in6_systm.h, which has been empty for a while.
1999-07-30 10:31:22 +00:00