Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -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 deraadt | 2014-11-21 | 1 | -2/+1 | |
| | |||||
* | The second level of the CTL_NET sysctl is a PF_*, not an AF_* | 2014-06-23 | 1 | -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.h | 2013-11-21 | 1 | -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 jmc | 2012-08-26 | 1 | -2/+2 | |
| | |||||
* | -h flag to print human numbers in conjunction with -w -b | 2012-08-22 | 1 | -16/+38 | |
| | |||||
* | rmove rotten netatalk bits | 2011-07-09 | 1 | -5/+1 | |
| | |||||
* | have netstat -w default to the first egress interface, which is usually more | 2011-01-09 | 1 | -2/+54 | |
| | | | | | interesting than whatever happens to be the last interface. ok deraadt nicm | ||||
* | don't repeat the banner if not a tty. | 2009-11-22 | 1 | -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. | 2009-08-04 | 1 | -5/+4 | |
| | | | | ok deraadt | ||||
* | add missing headers needed for warn() and err(). | 2009-02-07 | 1 | -1/+2 | |
| | | | | ok claudio@ ray@ | ||||
* | NULL instead of 0 in comparison | 2009-01-26 | 1 | -2/+2 | |
| | |||||
* | Plug a couple of memory leaks noticed by deraadt. | 2008-12-24 | 1 | -1/+3 | |
| | | | | ok otto@ | ||||
* | Make -I work correctly. RTM_NEWADDR needs to filter the ifname as well. | 2008-03-18 | 1 | -1/+4 | |
| | | | | Found by and tested jmc@ | ||||
* | Make if.c kvm free by fetching the interface stats via sysctl like in systat | 2008-01-03 | 1 | -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 crud | 2007-12-19 | 1 | -9/+1 | |
| | |||||
* | remove 21 nlist variables, and instead use sysctl to query the kernel | 2007-12-14 | 1 | -8/+2 | |
| | | | | | turn on INET6 the default (remove the #ifdef's) ok claudio reyk | ||||
* | More 64 bits counters fixes. | 2007-09-11 | 1 | -16/+16 | |
| | | | | | | From brad. ok mk claudio | ||||
* | Counters switched to u_int64_t so use %llu to print them. | 2007-09-05 | 1 | -5/+6 | |
| | | | | Found by and OK mk@ + OK mglocker@ | ||||
* | Don't truncate interface name. | 2007-06-15 | 1 | -3/+3 | |
| | | | | | | Fixes PR 5460. OK deraadt, agreed with by krw. | ||||
* | remove IPX support, agreed by many | 2007-06-04 | 1 | -39/+2 | |
| | |||||
* | change semantics of ff01::/16 to interface local multicast | 2006-11-17 | 1 | -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. | 2006-05-27 | 1 | -22/+3 | |
| | |||||
* | Moving netstat from kvm snooping to retrieving the routing tables via | 2006-05-27 | 1 | -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@ | ||||
* | ARGSUSED | 2005-12-11 | 1 | -2/+3 | |
| | |||||
* | Use queue macros instead of directly accessing fields. ok pat@ "put it | 2005-10-17 | 1 | -13/+13 | |
| | | | | in" deraadt@ | ||||
* | bye bye, Xerox NS protocols | 2005-06-08 | 1 | -21/+2 | |
| | |||||
* | kill unneeded (char *) casts. ok millert, otto | 2005-03-25 | 1 | -12/+10 | |
| | |||||
* | make 'netstat -i' print carp link addresses correctly. | 2005-03-13 | 1 | -2/+3 | |
| | | | | ok mcbride@ | ||||
* | remove unneeded casts of if stats; ok krw miod dhartmei | 2005-03-04 | 1 | -11/+11 | |
| | |||||
* | make counters in struct iftot u_long instead of int, as they overflow | 2005-03-02 | 1 | -10/+10 | |
| | | | | on amd64. from Peter Philipp. closes PR 4107. | ||||
* | remove netiso | 2004-06-25 | 1 | -5/+2 | |
| | |||||
* | some NULL vs 0 and knf; parts from nimadeus@pandora.be | 2004-03-13 | 1 | -4/+4 | |
| | |||||
* | fix columns; sahara@surt.net | 2003-09-26 | 1 | -3/+3 | |
| | |||||
* | add missing includes | 2003-07-10 | 1 | -2/+3 | |
| | | | | ok deraadt@ tedu@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | use __KAME__ to determine kame-based kernel. | 2003-05-14 | 1 | -4/+4 | |
| | |||||
* | ansi | 2003-02-01 | 1 | -13/+7 | |
| | |||||
* | use macro to determine link-local multicast addr | 2002-06-19 | 1 | -3/+3 | |
| | |||||
* | decode embedded scopeid on -inalv multicast address printing | 2002-06-19 | 1 | -10/+19 | |
| | |||||
* | a night of cleanup, so i can read this easier | 2002-05-27 | 1 | -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. | 2002-02-16 | 1 | -4/+4 | |
| | |||||
* | evil, annoying spaces and tabs | 2002-01-17 | 1 | -4/+4 | |
| | |||||
* | kill more registers | 2001-11-19 | 1 | -5/+5 | |
| | | | | millert@ ok | ||||
* | Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts. | 2001-09-04 | 1 | -9/+7 | |
| | |||||
* | Add a -q to silence zero-output lines and fix some whitespace and text nits. | 2001-08-26 | 1 | -2/+19 | |
| | | | | | Submitted by: Sam Smith <S@mSmith.net> Ok: theo | ||||
* | -Wall cleanup | 2001-07-18 | 1 | -10/+9 | |
| | |||||
* | If sdl type is ISO88025, print the address using `:' as well. | 2001-02-06 | 1 | -3/+4 | |
| | |||||
* | Bytecounter stats. (-b switch) | 2000-12-13 | 1 | -35/+85 | |
| | | | | From NetBSD. ok itojun@ | ||||
* | fix a few signed/unsigned/long printf formats; millert@ & deraadt@ ok | 2000-10-23 | 1 | -3/+3 | |
| |