summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
AgeCommit message (Collapse)Author
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@
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-19delete rcsid crudTheo de Raadt
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-13implement sysctls to report IP, TCP, UDP, and ICMP statistics andReyk Floeter
change netstat to use them instead of accessing kvm for it. more protocols will be added later. discussed with deraadt@ claudio@ gilles@ ok deraadt@
2007-12-11mbuf stats are always gotten via sysctl(), so remove old nlist stuffTheo de Raadt
ok claudio pyr
2007-10-20an usage message should fit on a 80-column displayIgor Sobrado
ok jmc@
2007-09-11u_quad_t -> u_int64_t and %qu -> %llu, from bradHenning Brauer
2007-09-11More 64 bits counters fixes.Michael Knudsen
From brad. ok mk claudio
2007-09-05Correct the format strings after the recent rt_metrics changes.Claudio Jeker
rmx_pksent is not u_int64_t all others are just u_int.
2007-09-05Counters switched to u_int64_t so use %llu to print them.Claudio Jeker
Found by and OK mk@ + OK mglocker@
2007-09-03Make use of the carp preempt counter to signal number of transitions ofJoel Knight
any carp group to master status. ok dhartmei@
2007-08-14Prevent sneaking in unencrypted packets into WEP traffic.Alexander Bluhm
ok damien@, put it ok deraadt@
2007-07-25Update synopsis. with help by jmc@Claudio Jeker
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-07-24Bring back a few things from route/show.c which I like better.Claudio Jeker
2007-07-21Similar to sbin/route/show.c:Claudio Jeker
Check the rtm_version before trying to print an entry. If the rtmsg has a different version skip it and don't try to print it. Solves a SIGSEGV I have triggered with one of my scarier diffs. OK henning@
2007-06-28Bring the index defines back in sync with struct nlist after removal of IPXClaudio Jeker
symbols from the table. This fixes the netstat issues some people reported. OK henning@
2007-06-19Remove unused variable.Ray Lai
2007-06-19net80211_ifstats() is called in main.c but there was no prototype.Ray Lai
OK markus and itojun
2007-06-19err(3) was being called but was missing an include, and end: wasRay Lai
unused. OK markus and itojun
2007-06-19"off" isn't a pointer, it's a ulong. According to printf(3), %#lxRay Lai
is equivalent to %p. OK markus and itojun