summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
AgeCommit message (Collapse)Author
2010-01-14Similar fix for default route printing as done in netstat. Make sure maskClaudio Jeker
is 0 when sa_len is 0.
2010-01-11"default" routes need a mask of 0 too.David Gwynne
from and ok claudio@
2010-01-03.Bl always requires .It, even in .Bl -column;Ingo Schwarze
syntax errors found by mandoc(1), also required to fix the mandoc build; feedback and ok jmc@ and sobrado@
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-08-07if buffers overlap; result will be undefined. ok claudio@, michele@Martynas Venckus
2009-08-05missing breakTheo de Raadt
2009-08-04fix some warnings. there are others, but nobody wants to look at them.Ted Unangst
ok deraadt
2009-07-17revert 1.38: naddy looked closer at the output and some of the sections ↵Ted Unangst
don't make sense without the headers anymore
2009-07-16make the inet6 output a little more like everything else.Ted Unangst
ok deraadt + a small fix from damien
2009-07-13Token bucket filter has been killed.Michele Marchetto
ok claudio@ henning@ dlg@
2009-06-27Mark MPLS routes with T (tagged) in route output.Michele Marchetto
suggested by dlg@, ok claudio@, laurent@, blambert@
2009-06-25do not use nitems(); ok claudioTheo de Raadt
2009-06-04Add mpls and pflow to the list of supported address families, and sortMichael Knudsen
it. `sure' deraadt, `sure why not' claudio, minor complains about the sorting from phessler.
2009-05-31There is no need to mask priority with RTP_MASK because it is already doneClaudio Jeker
by the kernel.
2009-05-23typoChris Cappuccio
2009-05-23missed rtm_hdrlen conversion in two placesChris Cappuccio
ok claudio@
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-04-28Sync with kernel changes.Michele Marchetto
Add support to route(8) for a new dummy operation to allow packets coming in with a particular label to leave the MPLS cloud and join ipv4/ipv6 stack. ok claudio@ laurent@
2009-02-21we use kvm_openfiles() not kvm_open(); Amarendra GodboleTheo de Raadt
2009-02-07add missing headers needed for warn() and err().Charles Longeau
ok claudio@ ray@
2009-02-06remove unused variables.Charles Longeau
ok henning@ michele@
2009-02-03Reflect MPLS kernel changes. Operations are stored now in rt_mpls field.Michele Marchetto
ok claudio@ laurent@
2009-02-02Fix typo, from Joao Salvatti <salvatti@gmail.com>.Marc Balmer
2009-01-28Make the -A a bit more readable by adding a newline between the route andClaudio Jeker
mk list.
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@
2009-01-26NULL instead of 0 in comparisonClaudio Jeker
2009-01-26Again use P to mark multipath routes in route output. OK henning@Claudio Jeker
2009-01-08Reflect MPLS kernel changes.Michele Marchetto
ok claudio@
2008-12-24Plug a couple of memory leaks noticed by deraadt.David Hill
ok otto@
2008-12-17add some newly created stats that are defined in ieee80211_ioctl.hjoshua stein
but not shown here update some descriptions to show that they are for wpa as well as wep input from and ok damien@
2008-12-15Unbreak netstat, reflecting kernel changes.Michele Marchetto
Now it shows MPLS informations correctly. OK claudio@
2008-12-15work around tree breakage by mpls peopleTheo de Raadt
2008-12-04... but without the debug codeTheo de Raadt
2008-12-04correctly display information for each of the mbuf cluster pools (whichTheo de Raadt
have different sizes) ok dlg
2008-11-09the extra kget() macro just befuddles the things we need to replace with a ↵Theo de Raadt
sysctl mechanism later
2008-10-14inet6print() has no 4th argumentTheo de Raadt
2008-09-16netstat statistics for pflow(4) via pseudo familyJoerg Goltermann
ok cluadio@ henning@
2008-09-15Similar to route(8) change mask rtm->rtm_priority with RTP_MASK to showClaudio Jeker
correct values. OK henning@
2008-06-13Include some additional pointers, etc that I really need for debuggingClaudio Jeker
nasty routing table issues. Mainly the pointer to the previous node. OK henning@
2008-06-13remove a rather silly comment.Claudio Jeker
2008-06-13Let the kvm output of netstat grok rt priorities like the "normal" show code.Claudio Jeker
2008-05-09some Xr for tcpbench(1) and tcpdrop(8);Jason McIntyre
2008-05-08Sync netstat show.c with route show.c to gain mpls support and to show theClaudio Jeker
routing priority. hai norby@
2008-05-08make -f mpls work. OK norby@Claudio Jeker
2008-05-08Receiving carp packets for unknown vhid's is not really an error.Marco Pfatschbacher
Change the wording accordingly. OK markus@, dlg@
2008-03-18Make -I work correctly. RTM_NEWADDR needs to filter the ifname as well.Claudio Jeker
Found by and tested jmc@
2008-02-05Change the method of identifying server connections to hide fromStuart Henderson
netstat without -a: use the connection state to identify TCP servers, check the foreign address (not local address) to identify servers on UDP and raw sockets. From Philip Guenther, style changes suggested by Claudio. ok claudio
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@