Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | netstat: unify duplicate addr pretty printingHEADmaster | Mike Frysinger | 2011-11-20 | 1 | -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 absulote | Bernd Eckenfels | 2011-04-20 | 1 | -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-ports | Mike Frysinger | 2011-04-09 | 1 | -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 numbers | Mike Frysinger | 2011-04-09 | 1 | -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 macros | Mike Frysinger | 2010-08-15 | 1 | -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 Eckenfels | 2010-03-05 | 1 | -3/+3 |
| | | | | Berlios | ||||
* | netstat: fix %*s handling -- the field takes an int, not a size_t | Mike Frysinger | 2009-12-31 | 1 | -2/+2 |
| | |||||
* | netstat: add sctp connection decoding (Debian #306428 and Gentoo #258714) | Mike Frysinger | 2009-09-06 | 1 | -7/+176 |
| | |||||
* | netstat: fix typo in udp display | Mike Frysinger | 2009-09-06 | 1 | -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 ssb | Bernd Eckenfels | 2009-08-27 | 1 | -5/+11 |
| | | | | [ Feature Request #4466 ] --continuous should flush stdout | ||||
* | Avoid name resolution for listening or established sockets (-l) by return | Bernd Eckenfels | 2009-07-28 | 1 | -3/+5 |
| | | | | fast. Problem reported by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> | ||||
* | scanf format length fix (non exploitable?) from | Bernd Eckenfels | 2009-07-08 | 1 | -3/+3 |
| | | | | Fabian Hugelshofer <hugelshofer2006@gmx.ch> | ||||
* | sorted options | Bernd Eckenfels | 2008-12-02 | 1 | -4/+2 |
| | |||||
* | UDPlite Support for net-stat by Brian Micek <bmicek@gmail.com> | Bernd Eckenfels | 2008-12-01 | 1 | -43/+56 |
| | |||||
* | Add wide option to prevent truncating IPv6 addresses | Luk Claes | 2008-11-16 | 1 | -9/+19 |
| | |||||
* | avoid unused filetype, fix formatting of -p headers | Bernd Eckenfels | 2008-10-03 | 1 | -19/+14 |
| | |||||
* | Support netstat -s with -6tuw options (incl. usage()) | Bernd Eckenfels | 2008-10-03 | 1 | -19/+19 |
| | |||||
* | Enable netstat -s for IPv6 (Debian Bug #453859 from Varun Chandramohan) | Bernd Eckenfels | 2008-10-03 | 1 | -4/+25 |
| | |||||
* | allow netstat to print Rcv/Snd-Q for TCP_LISTEN (containing accept | Bernd Eckenfels | 2008-10-02 | 1 | -7/+1 |
| | | | | backlog) | ||||
* | use new page aliged proc_fopen for address families | Bernd Eckenfels | 2007-12-01 | 1 | -9/+10 |
| | |||||
* | ROSE support (not yet enabled) | Bernd Eckenfels | 2007-12-01 | 1 | -2/+15 |
| | |||||
* | Debian Bug #260587 fixed, make sure the Columns state and user in netstat -t -e | Bernd Eckenfels | 2006-03-16 | 1 | -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 Eckenfels | 2005-08-02 | 1 | -15/+34 |
| | | | | Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318503 | ||||
* | avoid namespace conflicts | Bernd Eckenfels | 2004-06-03 | 1 | -2/+2 |
| | |||||
* | - change columns of netstat -i/ifconfig -s to avoid run-into (Stefan Illner) | Bernd Eckenfels | 2002-12-10 | 1 | -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, and | Bernd Eckenfels | 2002-07-23 | 1 | -9/+26 |
| | | | | print out tcp6, udp6 or raw6 if it is a v6 socket | ||||
* | fixing debian bug #151130 reported by Dan Jacobson where netstat | Bernd Eckenfels | 2002-06-27 | 1 | -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 Eckenfels | 2002-02-19 | 1 | -3/+3 |
| | |||||
* | fixes debian bug#134600 (sigsegv in netstat on negative inoded in | Bernd Eckenfels | 2002-02-19 | 1 | -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). It | Bernd Eckenfels | 2001-11-25 | 1 | -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 Kleen | 2001-08-26 | 1 | -4/+4 |
| | |||||
* | Fix punctuation. | Phil Blundell | 2001-04-15 | 1 | -7/+7 |
| | |||||
* | Use setlocale at program initialisation. | Phil Blundell | 2001-04-08 | 1 | -2/+4 |
| | | | | Patch from Arnaldo Carvalho de Melo. | ||||
* | Fix reporting of IPv6 multicast addresses. | Phil Blundell | 2001-04-01 | 1 | -2/+6 |
| | |||||
* | display all IFF_ flags for netstat -i (print_short and print_long has equal | Bernd Eckenfels | 2000-12-19 | 1 | -2/+2 |
| | | | | count of printed flags now) | ||||
* | feature from the guys at RedHat for more selective "-n" option: | Bernd Eckenfels | 2000-10-08 | 1 | -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 Blundell | 2000-05-28 | 1 | -2/+2 |
| | |||||
* | Update manual pages to better match reality. | Phil Blundell | 2000-05-21 | 1 | -61/+26 |
| | | | | | Pull code from ifconfig into interface.c; implement ifconfig -s and netstat -i -e. | ||||
* | Add X.25 support. | Phil Blundell | 2000-05-20 | 1 | -2/+64 |
| | | | | Patch from "J.H.M. Dassen (Ray)" <jdassen@cistron.nl> | ||||
* | re applied the ipv6 addresses patch from Matthew (for intel platform) | Bernd Eckenfels | 2000-04-05 | 1 | -53/+38 |
| | |||||
* | patch from matthew flanagan for better ipv6 address representation in | Bernd Eckenfels | 2000-04-03 | 1 | -20/+12 |
| | | | | netstat | ||||
* | Make `netstat -p' work with 2.0 kernels. | Phil Blundell | 2000-03-19 | 1 | -12/+56 |
| | | | | Patch from bryanh@giraffe-data.com (Bryan Henderson) | ||||
* | Fix netstat -ci (#6904 in RedHat bugzilla) | Phil Blundell | 2000-02-20 | 1 | -7/+11 |
| | | | | Patch from Jeff Johnson | ||||
* | ready for net-tools 1.54... | Phil Blundell | 1999-11-20 | 1 | -3/+12 |
| | |||||
* | Fix warning in netstat. | Phil Blundell | 1999-08-28 | 1 | -1/+2 |
| | | | | Only build util-ank if iptunnel and ipmaddr were requested | ||||
* | Patch from Jeff Johnson <jbj@redhat.com> to fix `netstat -c' | Phil Blundell | 1999-07-28 | 1 | -3/+4 |
| | | | | fd leak. | ||||
* | Bump version to 1.53 | Phil Blundell | 1999-06-12 | 1 | -13/+19 |
| | | | | | Fix some buffer overruns. Add support to netstat for GRE and ESP. | ||||
* | Small netstat fixes from Tuan Hoang. | Phil Blundell | 1999-04-20 | 1 | -4/+5 |
| | |||||
* | Minor textual updates/corrections | Phil Blundell | 1999-04-18 | 1 | -3/+3 |
| | |||||
* | More i18n, from Meelis Roos <mroos@tartu.cyber.ee> | Phil Blundell | 1999-03-24 | 1 | -7/+7 |
| |