summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
Commit message (Collapse)AuthorAgeFilesLines
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-2/+2
|
* Use macro API to <sys/queue.h>phk2000-12-303-18/+17
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: phk
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-11/+11
|
* Now that the amount of (pseudo) interfaces is growing with IPv6,guido2000-10-301-22/+30
| | | | get rid of stupid upperbound on the amount of interfaces (was 8).
* Augment the 'ifaddr' structure with a 'struct if_data' to keepjoe2000-10-191-9/+47
| | | | | | | | | | | statistics on a per network address basis. Teach the IPv4 and IPv6 input/output routines to log packets/bytes against the network address connected to the flow. Teach netstat to display the per-address stats for IP protocols when 'netstat -i' is evoked, instead of displaying the per-interface stats.
* Change the "in use" percentage metric to actually display a realbmilekic2000-10-151-9/+14
| | | | "in use" percentage. In other words, show how much of mb_map is in use.
* Fixed the printing of header for IPv4 routing table without -l option.ru2000-09-181-1/+1
| | | | Broken in rev 1.44.
* Replace the mbuf external reference counting code with somethingdwmalone2000-08-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that should be better. The old code counted references to mbuf clusters by using the offset of the cluster from the start of memory allocated for mbufs and clusters as an index into an array of chars, which did the reference counting. If the external storage was not a cluster then reference counting had to be done by the code using that external storage. NetBSD's system of linked lists of mbufs was cosidered, but Alfred felt it would have locking issues when the kernel was made more SMP friendly. The system implimented uses a pool of unions to track external storage. The union contains an int for counting the references and a pointer for forming a free list. The reference counts are incremented and decremented atomically and so should be SMP friendly. This system can track reference counts for any sort of external storage. Access to the reference counting stuff is now through macros defined in mbuf.h, so it should be easier to make changes to the system in the future. The possibility of storing the reference count in one of the referencing mbufs was considered, but was rejected 'cos it would often leave extra mbufs allocated. Storing the reference count in the cluster was also considered, but because the external storage may not be a cluster this isn't an option. The size of the pool of reference counters is available in the stats provided by "netstat -m". PR: 19866 Submitted by: Bosko Milekic <bmilekic@dsuper.net> Reviewed by: alfred (glanced at by others on -net)
* To make compilable without -DINET6.ume2000-08-072-0/+4
| | | | | PR: bin/20407 Submitted by: Patrick Bihan-Faou <patrick@mindstep.com>
* Do not display icmp(4) sockets as non-existent bridge(4) sockets.ru2000-08-031-2/+2
|
* Fix bug: "netstat -si" prints interface information, but the headerjdp2000-07-281-1/+1
| | | | | | | line is missing. This apparently was broken in revision 1.31 of "if.c". Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Make mbstat.m_mtypes seperate and viewable via sysctl, alsoalfred2000-07-151-25/+49
| | | | | | | expand the size from short to ulong Submitted by: Ian Dowse <iedowse@maths.tcd.ie> PR: kern/19809
* remove m_pulldown related statistics, it is not for production systemitojun2000-07-121-32/+0
| | | | (it belongs to kame experiment).
* add pfkeystat. sync with kameitojun2000-07-052-0/+27
|
* sync with latest kame netstat. basically, more statisticsitojun2000-07-048-299/+646
|
* Use Garrett's new (clearer) names.markm2000-04-231-7/+7
|
* Add '-L' option to usage().guido2000-03-201-1/+1
|
* Don't suppress Flags and Refs info for IPv4 entries.shin2000-03-141-2/+2
| | | | | (They need to be suppressed by default for IPv6 entries to keep the column size of each entries in 80.)
* Add a flag to the usage display.shin2000-03-111-2/+2
| | | | | | | | | There was a missing description for a new flags to netstat. I already added the fix to netstat man, but usage() change is also necessary. Specified by: Ben Smithurst <ben@scientia.demon.co.uk> Approved by: jkh
* Add "-l" option description.shin2000-03-111-1/+3
| | | | | Noticed the necessity by Ben Smithurst <ben@scientia.demon.co.uk> message on freebsd-current.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* IPv6 multicast routing.shin2000-01-285-10/+237
| | | | | | | | | | | | | kernel IPv6 multicast routing support. pim6 dense mode daemon pim6 sparse mode daemon netstat support of IPv6 multicast routing statistics Merging to the current and testing with other existing multicast routers is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances the base code in KAME distribution. Make world check and kernel build check was also successful.
* Instead of reporting all 0.0.0.0 as ``default'' only reportrgrimes2000-01-071-2/+5
| | | | | | a true default of 0.0.0.0/0 as default. Reviewed by: wollman
* -permit protocol specific statistics at iflag,shin2000-01-073-9/+16
| | | | | | | | | only when either of sflag and "-f inet6" is specified. -fix the indentation of default output Specified by: Stephen McKay <syssgm@detir.qld.gov.au> Reviewed and Confirmed by: Stephen McKay <syssgm@detir.qld.gov.au>
* libipsec and IPsec related apps. (and some KAME related man pages)shin2000-01-061-1/+1
| | | | | Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Print mac addresses in standard byte:byte format rather thanjkh2000-01-031-1/+1
| | | | | | | byte.byte. This makes it consistent with our other utilities like arp(8) and ifconfig(8). Submitted by: Paul Vixie <paul@vix.com>
* Add display of maximum allowed mbuf count to match mbuf cluster count.msmith1999-12-281-3/+11
| | | | Submitted by: Bosko Milekic <bmilekic@dsuper.net>
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-284-47/+12
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* also, changed prototype of pr_rthdr(), as my previous fixshin1999-12-211-1/+1
| | | | for netstat/route.c
* Added missing declaration for argment specification at pr_rthdr(),shin1999-12-211-3/+4
| | | | | | caused by my previous patch, sorry. Also, changed its var name from 'af' to 'wid_af', to avoid confusion with global var 'af'.
* define WID_DST6 and WID_GW6 and use them only for IPv6, to keep IPv4 relatedshin1999-12-211-12/+32
| | | | | | | | | | | | information in 80 columns. TODO: IPv6 related information is not likely to be kept in 80 columns, anyway. Some more print modes could be added, but what is the priority between those modes? -print out all information even if they don't fit into 80 columns -strip off some information to fit them into 80 columns Reviewed by: markm
* Enable INET6 by default.shin1999-12-151-1/+1
| | | | This should be OK on non INET6 enabled kernel.
* Add new option, -L that will listen the various listen queue lengths.guido1999-12-134-32/+68
| | | | | Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Clive Lin <clive@GnatS.CirX.ORG>
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-078-107/+1649
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Fix the output of 'netstat -I de0 1' for the alpha. Fix a bunch ofdfr1999-11-091-9/+10
| | | | warnings while I'm here.
* uncomment FILES section (it look reasonable here)phantom1999-10-301-13/+23
| | | | mdoc(7)'fy
* Put include <netgraph.h> back in - problem was due to a cvsup mess ondillon1999-10-241-0/+1
| | | | | freefall. There may also be a real problem w/ buildworld but the fix would go somewhere else, not here.
* Cleanup missing includes, stale includes, and a few printf formatdillon1999-10-233-3/+2
| | | | inconsistancies.
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-216-4/+230
| | | | | | | | | | Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
* Cleanup towards -Walljulian1999-10-215-18/+17
|
* Allow suppress printing of lines with zero countsbp1999-10-181-2/+4
| | | | | | for an IPX address family. PR: 14168
* Add xrefs to the {f,net,sock}stat.1 manpages. While I'm in there, fixsheldonh1999-09-061-0/+4
| | | | | | | the sockstat.1 document title, which still remembers when sockstat was called lsock. Reviewed by: mpp
* Zap $Source$peter1999-09-061-1/+0
|
* $Header$ -> $FreeBSD$peter1999-08-281-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-289-9/+9
|
* Document the use of the -a flag in conjunction with the -r flag.nik1999-08-112-3/+11
| | | | | PR: docs/13037 Submitted by: Christopher Masto <chris@netmonger.net>
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Don't truncate port numbers.des1999-07-061-9/+5
| | | | Submitted by: ru
* Add support for printing bridging statistics with ``-p bdg '' .luigi1999-04-264-2/+42
| | | | If someone has a better flag to use I'll be glad to change it.
OpenPOWER on IntegriCloud