summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/if.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* remove pointless if_var.h and socketvar.h includes; ok deraadtmikeb2014-11-211-2/+1
|
* The second level of the CTL_NET sysctl is a PF_*, not an AF_*guenther2014-06-231-3/+3
| | | | inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
* split kernel parts of the if.h into a separate header file if_var.hmikeb2013-11-211-1/+2
| | | | | which allows us to modify ifnet structure in a relatively safe way; discussed with deraadt, ok mpi
* oops, i added a stray character. spotted by jmctedu2012-08-261-2/+2
|
* -h flag to print human numbers in conjunction with -w -btedu2012-08-221-16/+38
|
* rmove rotten netatalk bitshenning2011-07-091-5/+1
|
* have netstat -w default to the first egress interface, which is usually moretedu2011-01-091-2/+54
| | | | | interesting than whatever happens to be the last interface. ok deraadt nicm
* don't repeat the banner if not a tty.tedu2009-11-221-7/+8
| | | | | | add a -c count option to netstat. tweak spacing to not smear fields in vmstat. ok deraadt sthen
* fix some warnings. there are others, but nobody wants to look at them.tedu2009-08-041-5/+4
| | | | ok deraadt
* add missing headers needed for warn() and err().chl2009-02-071-1/+2
| | | | ok claudio@ ray@
* NULL instead of 0 in comparisonclaudio2009-01-261-2/+2
|
* Plug a couple of memory leaks noticed by deraadt.dhill2008-12-241-1/+3
| | | | ok otto@
* Make -I work correctly. RTM_NEWADDR needs to filter the ifname as well.claudio2008-03-181-1/+4
| | | | Found by and tested jmc@
* Make if.c kvm free by fetching the interface stats via sysctl like in systatclaudio2008-01-031-346/+390
| | | | | | and ospfd. What is not yet covered is the -d and -t flags to show interface queue drops and the if_timer. OK deraadt@
* delete rcsid crudderaadt2007-12-191-9/+1
|
* remove 21 nlist variables, and instead use sysctl to query the kernelderaadt2007-12-141-8/+2
| | | | | turn on INET6 the default (remove the #ifdef's) ok claudio reyk
* More 64 bits counters fixes.mk2007-09-111-16/+16
| | | | | | From brad. ok mk claudio
* Counters switched to u_int64_t so use %llu to print them.claudio2007-09-051-5/+6
| | | | Found by and OK mk@ + OK mglocker@
* Don't truncate interface name.ray2007-06-151-3/+3
| | | | | | Fixes PR 5460. OK deraadt, agreed with by krw.
* remove IPX support, agreed by manyhenning2007-06-041-39/+2
|
* change semantics of ff01::/16 to interface local multicastitojun2006-11-171-3/+4
| | | | | | (to sync up with more recent IPv6 spec) ok from: deraadt mcbride
* Kill upHex and use %X instead. Crazy old code found by deraadt.claudio2006-05-271-22/+3
|
* Moving netstat from kvm snooping to retrieving the routing tables viaclaudio2006-05-271-7/+44
| | | | | sysctl. Most code is stolen from route -- which was stolen from netstat. kvm snooping code is still in and useable. Put it in deraadt@ henning@
* ARGSUSEDderaadt2005-12-111-2/+3
|
* Use queue macros instead of directly accessing fields. ok pat@ "put itotto2005-10-171-13/+13
| | | | in" deraadt@
* bye bye, Xerox NS protocolshenning2005-06-081-21/+2
|
* kill unneeded (char *) casts. ok millert, ottojaredy2005-03-251-12/+10
|
* make 'netstat -i' print carp link addresses correctly.mpf2005-03-131-2/+3
| | | | ok mcbride@
* remove unneeded casts of if stats; ok krw miod dhartmeijaredy2005-03-041-11/+11
|
* make counters in struct iftot u_long instead of int, as they overflowdhartmei2005-03-021-10/+10
| | | | on amd64. from Peter Philipp. closes PR 4107.
* remove netisohenning2004-06-251-5/+2
|
* some NULL vs 0 and knf; parts from nimadeus@pandora.bederaadt2004-03-131-4/+4
|
* fix columns; sahara@surt.netderaadt2003-09-261-3/+3
|
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ tedu@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* use __KAME__ to determine kame-based kernel.itojun2003-05-141-4/+4
|
* ansideraadt2003-02-011-13/+7
|
* use macro to determine link-local multicast addritojun2002-06-191-3/+3
|
* decode embedded scopeid on -inalv multicast address printingitojun2002-06-191-10/+19
|
* a night of cleanup, so i can read this easierderaadt2002-05-271-8/+8
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-4/+4
|
* evil, annoying spaces and tabsmickey2002-01-171-4/+4
|
* kill more registersmpech2001-11-191-5/+5
| | | | millert@ ok
* Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.millert2001-09-041-9/+7
|
* Add a -q to silence zero-output lines and fix some whitespace and text nits.brian2001-08-261-2/+19
| | | | | Submitted by: Sam Smith <S@mSmith.net> Ok: theo
* -Wall cleanuppvalchev2001-07-181-10/+9
|
* If sdl type is ISO88025, print the address using `:' as well.fgsch2001-02-061-3/+4
|
* Bytecounter stats. (-b switch)camield2000-12-131-35/+85
| | | | From NetBSD. ok itojun@
* fix a few signed/unsigned/long printf formats; millert@ & deraadt@ okmickey2000-10-231-3/+3
|