aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* netstat: unify duplicate addr pretty printingHEADmasterMike Frysinger2011-11-201-64/+38
| | | | | | | | | | | | | The tcp/udp/raw protocols duplicate the logic for looking up addresses and their ports, and then formatting them nicely. They also duplicate this for local and remote addresses. They also encode a few assumptions about the length of the strings they get back which can cause buffer over and under flows. Add a new helper called addr_do_one that unifies all of this duplicate logic in one place, and handles any string size correctly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* patch from Bert Wesarg to separate basename of -p only if it is absuloteBernd Eckenfels2011-04-201-2/+2
| | | | path (in order to make argv[0]="sshd pty/0" display as sshd, and not as /0.
* netstat: split host resolution out from --numeric-portsMike Frysinger2011-04-091-11/+11
| | | | | | | | According to the manual the option "--numeric-ports" should not affect host resolution, but it does. All connected hosts are displayed with numeric values instead of their FQDN. patch by Mads Martin Joergensen in Gentoo bug 76756
* netstat: fix handling of large socket numbersMike Frysinger2011-04-091-5/+5
| | | | | | | | The kernel really only treats sockets with a value of -1 as an error. The rest are an unsigned quantity. So tweak the nestat lookup to use an unsigned value. patch based on Antonio Galea's work in Debian bug 345331
* netstat: include sys/stat.h for S_ISREG macrosMike Frysinger2010-08-151-1/+2
| | | | | | | newer versions of glibc (like 2.12) have cleaned up headers so you need to include sys/stat.h explicitly for S_XXX macros Gentoo bug 332853
* netstat: PIDs can be long, Bug #199702 of Ubuntu Launchpad, Bug #16913 of ↵Bernd Eckenfels2010-03-051-3/+3
| | | | Berlios
* netstat: fix %*s handling -- the field takes an int, not a size_tMike Frysinger2009-12-311-2/+2
|
* netstat: add sctp connection decoding (Debian #306428 and Gentoo #258714)Mike Frysinger2009-09-061-7/+176
|
* netstat: fix typo in udp displayMike Frysinger2009-09-061-2/+2
| | | | | | The recent patch to add udplite support introduced a typo in the udp name. This fixes Gentoo #282794 and Debian #545328. Originally reported by Ambroz Bizjak <ambro@b4ever.net>.
* Fix for Feature Request from ssbBernd Eckenfels2009-08-271-5/+11
| | | | [ Feature Request #4466 ] --continuous should flush stdout
* Avoid name resolution for listening or established sockets (-l) by returnBernd Eckenfels2009-07-281-3/+5
| | | | fast. Problem reported by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
* scanf format length fix (non exploitable?) fromBernd Eckenfels2009-07-081-3/+3
| | | | Fabian Hugelshofer <hugelshofer2006@gmx.ch>
* sorted optionsBernd Eckenfels2008-12-021-4/+2
|
* UDPlite Support for net-stat by Brian Micek <bmicek@gmail.com>Bernd Eckenfels2008-12-011-43/+56
|
* Add wide option to prevent truncating IPv6 addressesLuk Claes2008-11-161-9/+19
|
* avoid unused filetype, fix formatting of -p headersBernd Eckenfels2008-10-031-19/+14
|
* Support netstat -s with -6tuw options (incl. usage())Bernd Eckenfels2008-10-031-19/+19
|
* Enable netstat -s for IPv6 (Debian Bug #453859 from Varun Chandramohan)Bernd Eckenfels2008-10-031-4/+25
|
* allow netstat to print Rcv/Snd-Q for TCP_LISTEN (containing acceptBernd Eckenfels2008-10-021-7/+1
| | | | backlog)
* use new page aliged proc_fopen for address familiesBernd Eckenfels2007-12-011-9/+10
|
* ROSE support (not yet enabled)Bernd Eckenfels2007-12-011-2/+15
|
* Debian Bug #260587 fixed, make sure the Columns state and user in netstat -t -eBernd Eckenfels2006-03-161-3/+3
| | | | | | are separated by blanks. This may cause scripts to fail parsing by column width. Better wait for the script compatible output. Problems exists for ESTABLIHED state only.
* make ipx in 2.6 work (perhaps).Bernd Eckenfels2005-08-021-15/+34
| | | | Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318503
* avoid namespace conflictsBernd Eckenfels2004-06-031-2/+2
|
* - change columns of netstat -i/ifconfig -s to avoid run-into (Stefan Illner)Bernd Eckenfels2002-12-101-2/+2
| | | | | - prevent segfault on protocol families without host error member - use /128 as default prefix if not specified instead of /0
* allow support for -6 and -4 options to netstat, also allow both, andBernd Eckenfels2002-07-231-9/+26
| | | | print out tcp6, udp6 or raw6 if it is a v6 socket
* fixing debian bug #151130 reported by Dan Jacobson where netstatBernd Eckenfels2002-06-271-5/+5
| | | | was printing 81 chars in a line for tcp, udp and raw.
* inodes in unix domain sockets are now padded to 8chars (netstat -x)Bernd Eckenfels2002-02-191-3/+3
|
* fixes debian bug#134600 (sigsegv in netstat on negative inoded inBernd Eckenfels2002-02-191-30/+34
| | | | /proc/net/udp) on "netstat -lpu". Thanks to Arnaud Giersch for the report.
* this fixes Debian Bug #109164 (netstat -ci does only print stats once). ItBernd Eckenfels2001-11-251-2/+2
| | | | | | | also renames add_interface and free_interface list to if_cache_add/free. I am not sure if removing the "proc_read" flag will harm performance, looks likt this check is never triggereed. Anyway, we need more efficient b-search sooner or later.
* Fix netstat -- don't print all v4 addresses as v4-mapped-in-v6.Andi Kleen2001-08-261-4/+4
|
* Fix punctuation.Phil Blundell2001-04-151-7/+7
|
* Use setlocale at program initialisation.Phil Blundell2001-04-081-2/+4
| | | | Patch from Arnaldo Carvalho de Melo.
* Fix reporting of IPv6 multicast addresses.Phil Blundell2001-04-011-2/+6
|
* display all IFF_ flags for netstat -i (print_short and print_long has equalBernd Eckenfels2000-12-191-2/+2
| | | | count of printed flags now)
* feature from the guys at RedHat for more selective "-n" option:Bernd Eckenfels2000-10-081-11/+35
| | | | | -numeric-host, -numeric-port, -numeric-user. Send to me by Jeff Johnson and reported by jik@kamens.brookline.ma.us
* Fix stupid bug in netstat -i.Phil Blundell2000-05-281-2/+2
|
* Update manual pages to better match reality.Phil Blundell2000-05-211-61/+26
| | | | | Pull code from ifconfig into interface.c; implement ifconfig -s and netstat -i -e.
* Add X.25 support.Phil Blundell2000-05-201-2/+64
| | | | Patch from "J.H.M. Dassen (Ray)" <jdassen@cistron.nl>
* re applied the ipv6 addresses patch from Matthew (for intel platform)Bernd Eckenfels2000-04-051-53/+38
|
* patch from matthew flanagan for better ipv6 address representation inBernd Eckenfels2000-04-031-20/+12
| | | | netstat
* Make `netstat -p' work with 2.0 kernels.Phil Blundell2000-03-191-12/+56
| | | | Patch from bryanh@giraffe-data.com (Bryan Henderson)
* Fix netstat -ci (#6904 in RedHat bugzilla)Phil Blundell2000-02-201-7/+11
| | | | Patch from Jeff Johnson
* ready for net-tools 1.54...Phil Blundell1999-11-201-3/+12
|
* Fix warning in netstat.Phil Blundell1999-08-281-1/+2
| | | | Only build util-ank if iptunnel and ipmaddr were requested
* Patch from Jeff Johnson <jbj@redhat.com> to fix `netstat -c'Phil Blundell1999-07-281-3/+4
| | | | fd leak.
* Bump version to 1.53Phil Blundell1999-06-121-13/+19
| | | | | Fix some buffer overruns. Add support to netstat for GRE and ESP.
* Small netstat fixes from Tuan Hoang.Phil Blundell1999-04-201-4/+5
|
* Minor textual updates/correctionsPhil Blundell1999-04-181-3/+3
|
* More i18n, from Meelis Roos <mroos@tartu.cyber.ee>Phil Blundell1999-03-241-7/+7
|