summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/netstat.h
AgeCommit message (Collapse)Author
2010-10-30Print socket structure internals when netstat -P pcbaddr is calledAlexander Bluhm
with -v. Also netstat -P supports more than TCP now. ok markus@ jmc@
2010-10-11Do similar changes to netstat as done to route(8). Try to show theClaudio Jeker
most expected rtable when doing a netstat -rn. OK henning@
2010-06-29Allow selecting both address family and protocol by passing the address familyBret Lambert
directly to the appropriate print functions. Found by jdixon@, tested jdixon@ and weerd@, ok krw@ deraadt@
2010-05-23remove unused functionCharles Longeau
from tobias@ (loooooong time ago) ok henning@ claudio@ tobias@
2010-03-23Sync with show.c of route(8). OK michele@Claudio Jeker
2009-11-22don't repeat the banner if not a tty.Ted Unangst
add a -c count option to netstat. tweak spacing to not smear fields in vmstat. ok deraadt sthen
2009-11-05IPv6 support for divert sockets.Michele Marchetto
tested by phessler@ pyr@ ok claudio@ "go ahead" deraadt@
2009-10-04Add (again) support for divert sockets. They allow you to:Michele Marchetto
- queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 1 A lot of discussion have happened since my last commit that resulted in many changes and improvements. I would *really* like to thank everyone who took part in the discussion especially canacar@ who spotted out which are the limitations of this approach. OpenBSD divert(4) is meant to be compatible with software running on top of FreeBSD's divert sockets even though they are pretty different and will become even more with time. discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@ tested by reyk@ and myself ok reyk@ claudio@ beck@ manpage help and ok by jmc@
2009-05-07Make the kvm routing table code grok multiple routing tables and do notClaudio Jeker
default to table 0 by default. Makes debugging alternate tables possible. OK jsg@
2009-01-27Fix some interger overflows when accounting the used mbuf memory percentageClaudio Jeker
and while there use a better type for the plural{,es}() functions. OK henning@
2008-09-16netstat statistics for pflow(4) via pseudo familyJoerg Goltermann
ok cluadio@ henning@
2008-01-03Make if.c kvm free by fetching the interface stats via sysctl like in systatClaudio Jeker
and ospfd. What is not yet covered is the -d and -t flags to show interface queue drops and the if_timer. OK deraadt@
2007-12-19Remove the kvm code in rt_stats() and use the sysctl code all the time.Claudio Jeker
While there remove the ugly rflag checks and make it more consistent with the rest of the code. Another step in making netstat setgid free. OK deraadt@
2007-12-14remove 21 nlist variables, and instead use sysctl to query the kernelTheo de Raadt
turn on INET6 the default (remove the #ifdef's) ok claudio reyk
2007-12-11mbuf stats are always gotten via sysctl(), so remove old nlist stuffTheo de Raadt
ok claudio pyr
2007-07-25Make it possible to show alternate routing tables in netstat. This mostlyClaudio Jeker
comes from route(8) which already had the -T option. OK henning@
2007-06-19net80211_ifstats() is called in main.c but there was no prototype.Ray Lai
OK markus and itojun
2007-06-04remove IPX support, agreed by manyHenning Brauer
2007-03-23Add a new flag -F to netstat restricting route display in conjuctionPierre-Yves Ritschard
with -r to routes in the same address family as the destination. ok henning@, claudio@
2006-08-29Fix KVM snooping code of netstat that got broken by the multiple tableClaudio Jeker
"support". This makes netstat -A work again. OK markus@ henning@
2006-07-05remove duplicate prototype for the intpr function.Brad Smith
2006-05-27Kill upHex and use %X instead. Crazy old code found by deraadt.Claudio Jeker
2006-05-27Moving netstat from kvm snooping to retrieving the routing tables viaClaudio Jeker
sysctl. Most code is stolen from route -- which was stolen from netstat. kvm snooping code is still in and useable. Put it in deraadt@ henning@
2005-06-15add -P for dumping PCB infos, similar to netbsd; ok deraadt@Markus Friedl
2005-04-12add '-W interface' for 802.11 wireless statistics of the net80211 stack.Reyk Floeter
ok dlg@ deraadt@ jmc@
2005-03-30kill -S; ok henningJared Yanovich
2005-03-25kill unneeded (char *) casts. ok millert, ottoJared Yanovich
2005-02-10backout previous; i committed to wrong repository (i meant to commit kame)Jun-ichiro itojun Hagino
2005-02-10dccp supportJun-ichiro itojun Hagino
2005-01-14Allow netstat to print PIM statistics.Ryan Thomas McBride
From Pavlin Radoslavov <pavlin@icir.org> ok deraadt@ brad@
2004-06-06Add new '-S' flag to display the source selector part of the routing tableCedric Berger
entry. "netstat -nrSf inet". ok deraadt@ mcbride@
2003-12-15Add initial support for pf state synchronization over the network.Ryan Thomas McBride
Implemented as an in-kernel multicast IP protocol. Turn it on like this: # ifconfig pfsync0 up syncif fxp0 There is not yet any authentication on this protocol, so the syncif must be on a trusted network. ie, a crossover cable between the two firewalls. NOTABLE CHANGES: - A new index based on a unique (creatorid, stateid) tuple has been added to the state tree. - Updates now appear on the pfsync(4) interface; multiple updates may be compressed into a single update. - Applications which use bpf on pfsync(4) will need modification; packets on pfsync no longer contains regular pf_state structs, but pfsync_state structs which contain no pointers. Much more to come. ok deraadt@
2003-10-17Common Address Redundancy ProtocolRyan Thomas McBride
Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@
2003-06-26more proto fixesTheo de Raadt
2003-06-25add protoTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-06-07print rip6statJun-ichiro itojun Hagino
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-08-26Add a -q to silence zero-output lines and fix some whitespace and text nits.brian
Submitted by: Sam Smith <S@mSmith.net> Ok: theo
2001-07-05IPComp support. angelos@ ok.Jean-Jacques Bernard-Gundol
2001-05-18adapt to use poolNiels Provos
2000-12-13Bytecounter stats. (-b switch)Camiel Dobbelaar
From NetBSD. ok itojun@
2000-06-30split netstat -an -f inet and netstat -an -f inet6, for consistency.Jun-ichiro itojun Hagino
Suggested by: fgs
2000-01-21ip4 -> ipipAngelos D. Keromytis
1999-12-08add IPv6 support from KAME. cleanup type matches with printf() format.Jun-ichiro itojun Hagino
KAME_SCOPEID should be enabled after KAME get{addr,name}info(3) merge.
1999-10-29etherip statisticsAngelos D. Keromytis
1998-02-26* netstat -r [-n] now prints netmasks for network routes (in XXX/24 format).Peter Galbavy
* beginnings of a -v (verbose) option.
1997-07-23Add AppleTalk support. TODO: route.c does not handle netranges.denny
1997-07-04Base PLEN on the value of LONG_BIT instead of assuming basedTodd C. Miller
on MAX size of long and int.