Commit Graph

186 Commits

Author SHA1 Message Date
wiz 7da30c83ac Change xref for vmstat(8) to vmstat(1).
Whitespace, punctuation and spelling fixes while I'm here.
2001-05-06 23:48:31 +00:00
itojun ea6a7c4787 pedant changes for strcpy/sprintf. 2001-04-06 05:10:28 +00:00
christos 7ee2aad347 PR/12517: Izumi Tsutsui: Don't use paddr_t in netstat; change to u_long 2001-03-31 20:11:18 +00:00
itojun 09afaac4e2 add sctp (maybe we should add it to /etc/protocols instead?) 2001-03-20 17:02:33 +00:00
itojun dd99f85c8e add few icmp type names.
http://www.isi.edu/in-notes/iana/assignments/icmp-parameters
2001-03-20 17:00:08 +00:00
enami 33ee74b742 Print hopcount too when -rv is given. 2001-03-08 03:47:04 +00:00
itojun 7806b5d1f3 increase ipstat.ips_badaddr if the packet fails to pass address checks. 2001-03-02 04:26:10 +00:00
itojun e79a9123a3 use u_quad_t for rtstat.
not sure if it really matters, but short (32K) looks way too small given
recent fat pipes connecting *BSD boxes, and our great uptime :-).
2001-02-21 05:45:11 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +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 fee00b1a78 mark cloned routes with RTF_CLONED. present it with netstat -r by "c".
let static routes overwrite cloned routes, as cloned routes can come back again
if necessary.  behavior same as freebsd/bsdi, code partially from bsdi42.
(NRL rt->rt_parent was not added)
should fix PR 11916 and maybe some other PRs with ARP behavior.

recompilation of usr.sbin/route6d is suggested.
2001-01-27 04:49:31 +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
matt c3405770e4 Do the same IEEE1394 address hack in here. 2000-11-14 23:07:40 +00:00
matt b6e8f357a2 Print out IEEE1394 addresses with : . Add a hack to limit the address
to 8 bytes.
2000-11-14 23:00:57 +00:00
itojun 35ff033435 more fix to "pfkey printed twice" problem. PR 11323 from ura. 2000-10-28 03:53:33 +00:00
itojun 3029ed7874 count path MTU changes. 2000-10-23 03:46:23 +00:00
itojun 9e8a83c2a4 count successful path MTU changes. good for debugging.
(there could be some discussion on when to increase the counter...)
2000-10-18 19:20:02 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
itojun 544bd86193 don't print pfkey statistics twice. from uep 2000-10-05 03:22:59 +00:00
itojun eccf945a90 be ready for rijndael 2000-10-02 17:46:42 +00:00
jhawk 684592f691 Rewrite tprintstat() so that netstat -ss functionality works
correctly for the "tp:" case (family iso). To avoid serious code
space bloat, stats are now table-driven.

A side-effect is that the mbuf chain statistics have been slightly re-ordered
to follow the 3 lines of EOT stats (still under Miscellaneous) rather
than sandwiched between "dec bits" and the EOTs.
2000-08-31 06:49:42 +00:00
jhawk b70721109d Add kernel counters for arp events, displayable with netstat -s -f arp 2000-08-15 20:24:57 +00:00
itojun 4372a4b82a -Wall friendly 2000-08-13 18:48:22 +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 e07dc430ef sync with net/pfkeyv2.h change. do not assume SADB_[EAC]ALG numbers are
continuous.  sync with kame.
2000-07-20 16:23:17 +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
enami 92b750d474 Allocate one more byte for the asterisk after the name of interface. 2000-07-03 05:06:43 +00:00
enami ed2b9a81c5 Backout part of rev 1.29 which doesn't match with the log message. 2000-07-03 05:02:38 +00:00
matt fcd0fb118f Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
itojun 144ba78cf9 with -inv flag, do not truncate name of the interface (like "strip0"). 2000-07-02 09:07:23 +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
enami 7e18584b57 Define members previously defined as u_long in struct iftot as u_quad_t.
Since these members are used to hold members defined now as u_quad_t
in struct if_data, u_long is quite not enough actually.
Without this, one night ttcp easily makes netstat to produce wrong output
like this:
enami@annex-2f-floor-244% netstat -ibw 1 -I tlp0
   tlp0 in            tlp0 out          total in           total out
     bytes               bytes             bytes               bytes
176333740607          176914940420         240082591           821282404
176093659136          176093659136                 0                   0
176093659136          176093659136                 0                   0
2000-04-19 03:26:55 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
itojun 9da359bbec revise IPsec, pfkey, IPv6 multicast and IPv6 statistics. (sync with kame) 2000-02-26 09:55:24 +00:00
itojun 8b2de4271e use NI_WITHSCOPEID when printing multicast group with -inav. 2000-02-09 13:57:06 +00:00
itojun 9fb53279e8 print IPv6 scopeid on -inv. with -in, scopeid is omitted due to insufficient
width.
2000-02-05 17:39:22 +00:00
itojun 4978f056f6 better sync with #ifdef notdef part (in -i for AF_INET). 2000-01-25 16:07:13 +00:00
itojun 5fa65dbb58 don't truncate IPv4 entries on -i (with -v). it is mainly for
"Network" column (13 digits, it will be 18 digits in maximum).
2000-01-25 15:56:55 +00:00
itojun e30f445f00 print IPv6 multicast group on -ia (-iav will avoid truncation) 2000-01-17 18:24:37 +00:00
itojun 08de376ec3 fix default route determination for inet6. 2000-01-17 18:03:51 +00:00
itojun ccef23e54a mask addresses properly on netstat -inv.
From: Matt Thomas <matt@3am-software.com>
2000-01-17 17:54:56 +00:00
hubertf e27fbcf4a2 Properly print the "B"(lackhole) flag (as documented :).
Patch submitted in PR 9190 by URA Hiroshi <ura@hiru.aoba.yokohama.jp>
2000-01-15 01:39:54 +00:00
sommerfeld c657ebbc95 Pay attention to the netmask of routes to 0.0.0.0;
e.g., a route to 0.0.0.0/1 is *not* a default route.

Inspired by a patch by Rodney Grimes sent to the zebra list.
2000-01-07 04:49:11 +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
tron b11e523694 Define "_KERNEL" not "KERNEL" before including "netinet6/ip6_mroute.h". 1999-12-02 14:31:22 +00:00
soren 819a9c5fd3 Print Internet6 header properly without -f. 1999-11-27 02:19:34 +00:00