summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/if.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing break when printing IPv6 multicast addresses.fenner2001-04-261-1/+2
| | | | | Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type a multicast sockaddr_dl is.
* Don't core dump when given "-i -a". Problem caused by a mistakenphk2001-03-301-1/+2
| | | | | | | dereference of a kernel-pointer in userland. PR: 26168 Submitted by: Peter Pentchev <roam@orbitel.bg>
* When displaying interface statistics with -i show a '-' for anyjoe2001-03-041-15/+64
| | | | values that aren't updated for a particular network-layer address.
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Use macro API to <sys/queue.h>phk2000-12-301-16/+15
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: phk
* Now that the amount of (pseudo) interfaces is growing with IPv6,guido2000-10-301-22/+30
| | | | get rid of stupid upperbound on the amount of interfaces (was 8).
* Augment the 'ifaddr' structure with a 'struct if_data' to keepjoe2000-10-191-9/+47
| | | | | | | | | | | statistics on a per network address basis. Teach the IPv4 and IPv6 input/output routines to log packets/bytes against the network address connected to the flow. Teach netstat to display the per-address stats for IP protocols when 'netstat -i' is evoked, instead of displaying the per-interface stats.
* Fix bug: "netstat -si" prints interface information, but the headerjdp2000-07-281-1/+1
| | | | | | | line is missing. This apparently was broken in revision 1.31 of "if.c". Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Print mac addresses in standard byte:byte format rather thanjkh2000-01-031-1/+1
| | | | | | | byte.byte. This makes it consistent with our other utilities like arp(8) and ifconfig(8). Submitted by: Paul Vixie <paul@vix.com>
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-071-18/+70
| | | | | | | | | | 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
* Fix the output of 'netstat -I de0 1' for the alpha. Fix a bunch ofdfr1999-11-091-9/+10
| | | | warnings while I'm here.
* Cleanup missing includes, stale includes, and a few printf formatdillon1999-10-231-1/+1
| | | | inconsistancies.
* Cleanup towards -Walljulian1999-10-211-2/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add support for printing bridging statistics with ``-p bdg '' .luigi1999-04-261-1/+36
| | | | If someone has a better flag to use I'll be glad to change it.
* IPX address formatting nit.billf1999-04-201-2/+2
| | | | | PR: bin/11179 Submitted by: Dan Nelson <dnelson@emsphone.com>
* Fixed printf format errors.bde1998-07-061-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* 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.
* Print out the interface's multicast addresses using the newwollman1997-01-131-51/+43
| | | | structures.
* Update to match changes in <net/if.h> and <netinet/ip_mroute.h>.wollman1997-01-031-0/+5
|
* Learn to follow the new interface address lists.wollman1996-12-131-2/+2
|
* Understand queue-ized ifnet structures.wollman1996-12-111-5/+14
|
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-101-0/+1
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
* Display multicast addresses if the "a" flag is used in combinationfenner1996-12-021-0/+60
| | | | | | with "-i". This was already in the man page but was not implemented. Obtained from: Multicast release 3.5
* fix printing of netranges in the i and r displays for netatalkjulian1996-08-311-2/+2
|
* Submitted by: archie@whistle.comjulian1996-07-231-2/+2
| | | | appletalk cleanups
* appletalk cleanupsjulian1996-07-091-0/+5
| | | | | | | | | | | e.g. Active ATALK connections Proto Recv-Q Send-Q Local Address Foreign Address (state) ddp 0 0 [69.230]130 [*.*]* ddp 0 0 [69.230]128 [*.*]* ddp 0 0 [69.230]1 [*.*]* etc..
* Code cleanup: remove unused variables, use correct *printf formatalex1996-06-021-8/+7
| | | | | | specifiers (some unsigned values were printed as signed, some longs were printed as ints), and place parentheses around assignments in if statements.
* Make the -w option actually useful to people. Instead of it creating adg1996-02-291-88/+75
| | | | | | | | | messy 130 column collage, output the system totals -or- info for a specific interface if -I is given. Also wait for <interval> before outputting the first sample so that it represents meaningful data (as opposed to the total since the system was booted - most busy systems wrap around many times during their operation, so these numbers are only misleading).
* XNS sort-of-support is no more.wollman1996-02-131-0/+6
|
* Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)wollman1996-02-061-0/+4
| | | | | 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).
* Merge in Lite-2 changes.peter1996-01-141-2/+2
|
* Increase width of Network column from 11 to 13 for the AF_INET case.se1995-11-221-2/+2
| | | | This seems to have been missed, when the recent IPX changes went in ...
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-5/+23
| | | | | | | | | | | | | | | | | | | | | 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-14/+12
| | | | | | 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-12/+12
| | | | | | 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.
* Added '-b' option to display the number of in and out bytes on a givendg1994-10-121-30/+72
| | | | interface (used with -i and -I flag).
* Changed output formatting to 0 pad hex bytes if necessary. This makesdg1994-08-051-1/+1
| | | | | the output consistent with traditional representations of ethernet addresses. I still don't like the spacing in netstat -i, however.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+375
OpenPOWER on IntegriCloud