summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/inet.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a -W flag that tells netstat not to truncate addresses even if they aredes2001-03-151-7/+13
| | | | | | | | too long for the column they're printed in. Move variable definitions out of netstat.h and into main.c. Clean up some warnings.
* MAXHOSTNAMELEN includes space for a NUL.brian2001-03-141-2/+3
| | | | | | Don't roll our own version of trimdomain(), use the one in libutil. Not objected to by: freebsd-audit
* Count and show incoming UDP datagrams with no checksum.ru2001-03-131-0/+1
|
* sync with latest kame netstat. basically, more statisticsitojun2000-07-041-106/+0
|
* -permit protocol specific statistics at iflag,shin2000-01-071-7/+14
| | | | | | | | | only when either of sflag and "-f inet6" is specified. -fix the indentation of default output Specified by: Stephen McKay <syssgm@detir.qld.gov.au> Reviewed and Confirmed by: Stephen McKay <syssgm@detir.qld.gov.au>
* Add new option, -L that will listen the various listen queue lengths.guido1999-12-131-29/+56
| | | | | Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Clive Lin <clive@GnatS.CirX.ORG>
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-071-18/+230
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Cleanup towards -Walljulian1999-10-211-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Don't truncate port numbers.des1999-07-061-9/+5
| | | | Submitted by: ru
* Fix fstat compatibility by printing the address of the tcppcb instead ofdes1999-03-101-3/+7
| | | | | | | that of the regular socket pcb for TCP sockets. PR: bin/9963 Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
* Fixed printf format errors.bde1998-07-061-20/+36
|
* o Use snprintf over sprintf.imp1998-06-091-5/+6
| | | | | | | o Use strncpy correctly. o Use enough buffer for line. Inspired by or Obtained from: Similar changes in OpenBSD
* Make "netstat -s" display stats on fast-forwarded packets.pb1998-05-191-2/+5
| | | | Obtained from: NetBSD code
* mbuf, inet, and unix modules no longer read kvm.wollman1998-05-151-62/+115
|
* Print out the two new fields in the ICMP stats. While we're at it, alsowollman1997-08-251-5/+23
| | | | | | convert icmp_stats() to use sysctl(3) to retrieve the information rather than kvm. This makes it easy to also print whether ICMP address mask responses are enabled, so do so.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Print out the new uninteresting-multicast-packets statistic.wollman1997-01-211-1/+4
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* TCP statistics are unsigned counters.pst1997-01-071-46/+46
| | | | | | | | | Tor Egge reports counter wrap and requests and update to quad_t sized counters, which is also a good thing to do, but I'm unhappy about adding two more instructions into the code path every time we doink a counter. Maybe with or after the Lite2 merge... Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no>
* Eliminate unnecessary include of <sys/mbuf.h>. PCBs aren't stored in mbufswollman1996-10-281-1/+4
| | | | any more.
* Try to make netstat more smart about port numbers.phk1996-08-231-7/+21
| | | | Feedback most welcome.
* Print PCB hash miss statistic.wollman1996-06-051-0/+1
|
* Code cleanup: remove unused variables, use correct *printf formatalex1996-06-021-91/+91
| | | | | | specifiers (some unsigned values were printed as signed, some longs were printed as ints), and place parentheses around assignments in if statements.
* Move #include of queue.h before #include of socketvar.h in preparation fordg1996-03-111-1/+1
| | | | struct socket changes.
* Add a counter for the number of times the listen queue was overflowed toguido1996-02-261-0/+1
| | | | | | the tcpstat structure. (netstat -s) Reviewed by: wollman Obtained from: Steves, TCP/IP Ill. vol.3, page 189
* tidy up the domain name trimming code, and move it to a single placepeter1996-01-151-13/+1
| | | | | rather than having the same bit of code duplicated in three places, each with their own static copy of the host's local name.
* Merge in Lite-2 changes.peter1996-01-141-2/+3
|
* Change .8s port name restriction to .15s, modern tcp portache1995-12-231-1/+1
| | | | | | have longer names, check /etc/services. kerberos_master triggers this bug: it is undistiguishable from simple kerberos for .8s
* - #if defined(TF_NEEDSYN) && defined(TF_NEEDSYN)adam1995-10-271-2/+2
| | | | + #if defined(TF_NEEDSYN) && defined(TF_NEEDFIN)
* In TCP statistics, display new statistic about how many resends werewollman1995-10-131-0/+1
| | | | initiated as a result of the Path MTU discovery process.
* Output statistics as unsigned in the -w section.dg1995-07-291-5/+13
| | | | | | Look at error return of kread() and stop on error. Fix warning in kread() to not output "kvm_read:" twice. Killed PCB cache misses stat as we no longer have it.
* Add "connections dropped by persist timeout" statistic.dg1995-07-291-0/+1
|
* Correct spelling mistake: upcated -> updated.wollman1995-06-191-2/+2
|
* Print out the statistics for cache updates of rtt, rttvar, and ssthresh.wollman1995-06-191-0/+5
|
* That's what I get for doing things in a hurry...applied up-to-date patchdg1995-04-091-1/+1
| | | | to this file rather than old one (before I renamed the structure element).
* Oops, remove some chaff from previous commit.dg1995-04-091-6/+0
|
* Updated netstat to grok 4.4 QUEUE macros now being used to like the PCBsdg1995-04-091-8/+9
| | | | together.
* Make netstat report the correct state for T/TCP.wollman1995-02-141-1/+7
| | | | Submitted by: Andras Olah <olah@cs.utwente.nl>
* Document router advertisement and solicitation messages in ICMP inputwollman1994-10-021-2/+2
| | | | histogram.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+494
OpenPOWER on IntegriCloud