summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a -W flag that tells netstat not to truncate addresses even if they aredes2001-03-151-3/+29
| | | | | | | | 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-30/+0
| | | | | | Don't roll our own version of trimdomain(), use the one in libutil. Not objected to by: freebsd-audit
* Do not display icmp(4) sockets as non-existent bridge(4) sockets.ru2000-08-031-2/+2
|
* add pfkeystat. sync with kameitojun2000-07-051-0/+23
|
* Add '-L' option to usage().guido2000-03-201-1/+1
|
* Add a flag to the usage display.shin2000-03-111-2/+2
| | | | | | | | | There was a missing description for a new flags to netstat. I already added the fix to netstat man, but usage() change is also necessary. Specified by: Ben Smithurst <ben@scientia.demon.co.uk> Approved by: jkh
* IPv6 multicast routing.shin2000-01-281-6/+0
| | | | | | | | | | | | | kernel IPv6 multicast routing support. pim6 dense mode daemon pim6 sparse mode daemon netstat support of IPv6 multicast routing statistics Merging to the current and testing with other existing multicast routers is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances the base code in KAME distribution. Make world check and kernel build check was also successful.
* -permit protocol specific statistics at iflag,shin2000-01-071-1/+1
| | | | | | | | | 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>
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-281-1/+1
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Add new option, -L that will listen the various listen queue lengths.guido1999-12-131-2/+5
| | | | | 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-55/+145
| | | | | | | | | | 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
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-211-1/+20
| | | | | | | | | | Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Document the use of the -a flag in conjunction with the -r flag.nik1999-08-111-2/+2
| | | | | PR: docs/13037 Submitted by: Christopher Masto <chris@netmonger.net>
* Add support for printing bridging statistics with ``-p bdg '' .luigi1999-04-261-1/+3
| | | | If someone has a better flag to use I'll be glad to change it.
* Make the ipx part of netstat work again.jhay1999-02-061-5/+7
|
* Don't use ip_mrtproto to determine whether multicast routing is infenner1999-01-181-15/+11
| | | | | | | | the kernel; this was left over from the earlier protocol-dependent kernel multicast routing code. Learn how to handle the malloc'd multicast routing table (instead of expecting it to be in mbufs)
* Make netstat work again.phk1998-08-081-9/+18
|
* Don't open /dev/mem until we need it, most cases we don't.phk1998-08-051-26/+25
|
* mbuf, inet, and unix modules no longer read kvm.wollman1998-05-151-82/+74
|
* Remove prog, unused variables.charnier1997-07-291-17/+11
| | | | Cosmetic in usage string.
* Add the new ipx statistics variables.jhay1997-05-101-8/+4
| | | | | | | Remove the dns lookup code in the ipx functions. That is bogus and slows things like netstat -r(f ipx) down, without gaining anything. Remove the ipx error protocol statistics.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Adding changes to ipfw and the kernel to support ip packet diversion..julian1996-07-101-0/+6
| | | | | | This stuff should not be too destructive if the IPDIVERT is not compiled in.. be aware that this changes the size of the ip_fw struct so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
* patches to allow netstat to monitor appletalk sockets openned using thejulian1996-06-081-1/+17
| | | | | | /sys/netatalk protocol stack more cleanups and fixes are likely
* Code cleanup: remove unused variables, use correct *printf formatalex1996-06-021-6/+5
| | | | | | specifiers (some unsigned values were printed as signed, some longs were printed as ints), and place parentheses around assignments in if statements.
* XNS sort-of-support is no more.wollman1996-02-131-2/+12
|
* Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)wollman1996-02-061-1/+11
| | | | | in preparation for its removal from the kernel source tree. NB: because a function was deleted, libc is now at version 3.0 (was 2.2 previously).
* tidy up the domain name trimming code, and move it to a single placepeter1996-01-151-0/+30
| | | | | rather than having the same bit of code duplicated in three places, each with their own static copy of the host's local name.
* A couple of changes of mine that I've been using for a while:peter1996-01-141-0/+8
| | | | | | | | | | | | | route.c: look up the netname as-is first before the shifted name. this makes a big speed difference, as the lookups are generally local DNS. The shifted names can be very wrong (there is still guessing and fudging involved) and usually go remote, taking a long time to fail. If you have the RFC reccomended netnames in your reverse lookups, this is even faster still. main.c: dont do a sethostent(1) - this is causing the resolver to use a VC (tcp) connection to the resolver, which has more overheads and is slower than the default UDP case. This once made sense when everything was based on text host tables.
* Fix the bug that caused the AF_UNIX domain sockets to not be shown..peter1995-11-151-1/+1
| | | | | (it was nlist()ing a wrong symbol name). Only problem is that I'd grown quite partial to the inet-only version.. :-)
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-1/+25
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
* Fixed netstat to not bogusly mangle the argv[] command args by rewritingdg1995-09-231-1/+0
| | | | | | the way it stores and handles "interface". The previous behavior resulted in strange output from 'w' and 'ps' when an interface specification was given to netstat.
* Output statistics as unsigned in the -w section.dg1995-07-291-1/+1
| | | | | | 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.
* Re-write `netstat -g' code to match the 3.5 data structures.wollman1995-06-131-4/+4
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Don't print protocol-cloned routes by default (enabled by -a flag).wollman1995-01-231-19/+21
| | | | | Print non-zero expiration timers. Use err(3) for error reporting.
* Added '-b' option to display the number of in and out bytes on a givendg1994-10-121-3/+6
| | | | interface (used with -i and -I flag).
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+508
OpenPOWER on IntegriCloud