Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do memory size calculations as unsigned long. Otherwise | 2019-06-13 | 1 | -2/+2 | |
| | | | | | | netstat -m would print the result of a signed interger overflow if kern.maxclusters is 1048576 or above. OK claudio@ | ||||
* | Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h> | 2019-05-10 | 1 | -2/+1 | |
| | | | | ok krw@, jsg@ | ||||
* | Fix reading route entries via kvm(3). | 2019-04-28 | 3 | -187/+189 | |
| | | | | From Naoki Fukaumi, ok yasuoka@, sthen@ | ||||
* | The rip6 checksum errors are accounted per socket. So the no socket | 2019-04-20 | 1 | -2/+1 | |
| | | | | | | errors include these, do not subtract both from delivered. Avoids an underflow in the rip6 delivered counter. OK deraadt@ claudio@ | ||||
* | signpost the location of the text explaining routing table output a little better... | 2019-04-17 | 1 | -1/+2 | |
| | |||||
* | remove some unneccessary baggage: Nm does not require an argument, | 2019-04-17 | 1 | -11/+9 | |
| | | | | and the Bk/Ek invocation here is no longer neccessary; | ||||
* | add -e to usage; while here, change the argument name to -T from tableid | 2019-03-05 | 1 | -4/+4 | |
| | | | | to rtable, to match the man page; | ||||
* | when showing interface stats, combine the queue drops with errors as fails | 2019-03-04 | 4 | -47/+100 | |
| | | | | | | | if you want to see errors or queue drops on their own, use -e or -d respectively. ok claudio@ deraadt@ | ||||
* | With option -l, show only UDP sockets that can receive packets from | 2018-12-18 | 1 | -2/+7 | |
| | | | | | | any other host, i.e. are somewhat like tcp sockets in LISTEN state. Suggested by tedu@ asking about netstat output. ok claudio@ tedu@ | ||||
* | Utilize sigio with sockets. | 2018-11-19 | 1 | -4/+2 | |
| | | | | OK mpi@ | ||||
* | Dont print "default" for "0.0.0.0" if it is a host route. | 2018-08-31 | 1 | -3/+1 | |
| | | | | | | diff from asou at soum.co.jp ok claudio kn | ||||
* | Print global IPsec counters. | 2018-08-13 | 3 | -3/+39 | |
| | | | | ok markus@ | ||||
* | Use "rtable" not "tableid" as argument name for rtable | 2018-07-13 | 1 | -4/+4 | |
| | | | | | | | | Make rtable(4) usage documentation consistent with other programs. This is to have `man -k ar~rtable' show the full list without having to look for other variations of the same argument type. OK bluhm | ||||
* | Zap unused mifi_t. | 2018-06-04 | 1 | -4/+1 | |
| | | | | OK bluhm mpi jca | ||||
* | Zap unused sockaddr. | 2018-06-04 | 1 | -3/+1 | |
| | | | | OK bluhm deraadt jca | ||||
* | Use <fcntl.h> instead of <sys/file.h> for open() and friends. | 2018-04-26 | 2 | -6/+3 | |
| | | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@ | ||||
* | AF_LOCAL is #define-non-grata; 'local' is 'unix' | 2018-04-26 | 1 | -3/+3 | |
| | | | | ok jmc@ schwarze@ | ||||
* | No need for <sys/socketvar.h> | 2018-01-05 | 1 | -2/+1 | |
| | |||||
* | Convert all the fields of {ah,esp,ipcomp}stat to uint64. | 2017-11-07 | 1 | -55/+55 | |
| | | | | | | This is a preliminary step for using percpu counters with the data. OK mpi@ | ||||
* | Bring "netstat -m" output up to speed with the kernel | 2017-10-28 | 1 | -13/+20 | |
| | | | | | | | | | | | The kernel no longer sets watermarks on cluster pools rendering "max" values useless. Instead, there's now a global limit on how much memory all cluster pools combined together can allocate from the system. The limit is set to kern.maxclusters number of 2Kb increments which allows us to display current, peak and maximum total memory used by the network. OK claudio, millert | ||||
* | Remove the TCP_FACK option and associated #if{,n}def code. | 2017-10-25 | 1 | -4/+1 | |
| | | | | | | | | | TCP_FACK was disabled by provos@ in June 1999. TCP_FACK is an algorithm that decides that when something is lost, all not SACKed packets until the most forward SACK are lost. It may be a correct estimate, if network does not reorder packets. OK visa@ mpi@ mikeb@ | ||||
* | add option -l to show only listening sockets (for tcp) | 2017-08-12 | 4 | -11/+21 | |
| | | | | feedback and ok awhile ago bluhm@ job@ | ||||
* | uint32_t is never < 0; pointed out by clang. | 2017-07-27 | 1 | -3/+3 | |
| | | | | | | | | While we originally get a short passed from the kernel, it's probably better for debugging purposes to show what we are actually having which is a uin32_t hence the %u format. OK deraadt | ||||
* | When printing a tcpcb with -P and -v, also show the inp in netstat | 2017-05-16 | 1 | -3/+9 | |
| | | | | | output. OK mpi@ | ||||
* | Make netstat(8) always ask for IPv6 multicast routing information. Worst | 2017-05-08 | 1 | -3/+2 | |
| | | | | | | | case is that we get an empty response instead of a message saying that there is no multicast support. ok mpi@ | ||||
* | For TCP sockets netstat -A must print the address of the TCP protocol | 2017-05-04 | 1 | -2/+3 | |
| | | | | | | control block. This is documented in fstat(1) and makes it possible to compare the values from both tools. OK sthen@ | ||||
* | Rename struct etheripstat members for consistency, move them all to 64bits | 2017-03-07 | 1 | -10/+10 | |
| | | | | Will make transition to percpu counters easier. ok bluhm@ | ||||
* | Crank all members of struct ipipstat to 64 bits | 2017-02-20 | 1 | -9/+9 | |
| | | | | Will make conversion to percpu counters easier. ok bluhm@ | ||||
* | IPsec packets could be dropped unaccounted if output after crypto | 2017-02-07 | 1 | -1/+4 | |
| | | | | | failed. Add a counter for that case. OK dhill@ | ||||
* | Include netinet/in.h for in_addr_t now it has moved out of sys/types.h. | 2017-02-04 | 1 | -1/+2 | |
| | | | | gcc warned about this, clang fatally errored. | ||||
* | The POSIX APIs that that sockaddrs all ignore the s*_len field in the | 2017-01-21 | 2 | -7/+5 | |
| | | | | | | | incoming socket, so userspace doesn't need to set it unless it has its own reasons for tracking the size along with the sockaddr. ok phessler@ deraadt@ florian@ | ||||
* | Remove PIM support from the multicast stack. | 2016-12-22 | 4 | -82/+5 | |
| | | | | ok mpi@ | ||||
* | Print the route cached at the inp with netstat -P. While there, | 2016-11-11 | 1 | -2/+9 | |
| | | | | | fix a compiler warning about missing prototype. OK claudio@ mpi@ | ||||
* | there's a new mbuf cluster pool. | 2016-10-28 | 1 | -2/+9 | |
| | |||||
* | Mention that netstat -P needs kmem access. | 2016-10-12 | 1 | -2/+10 | |
| | | | | From David Hill, ok bluhm@ | ||||
* | dont #define _KERNEL around some #includes | 2016-09-15 | 2 | -6/+2 | |
| | | | | | | | | | the data structures are now readable without _KERNEL needing to be defined. ok deraadt@ there's probably a lot more of these that can be cleaned up if anyone is interested in looking into it. | ||||
* | Add userland parts for BFD. Can't work if you don't have it enabled in | 2016-09-03 | 1 | -1/+2 | |
| | | | | | | the kernel. OK claudio@, henning@ | ||||
* | Drop non-encapulated ESP packets using a UDP-encapsulating TDB, and add | 2016-09-02 | 1 | -1/+2 | |
| | | | | | | the relevant counters. Ok mikeb@ | ||||
* | Document all letters used for route flags in "netstat -r". | 2016-09-01 | 1 | -2/+5 | |
| | | | | OK jmc@ mpi@ sthen@ | ||||
* | Display all route flags in "route get", "route show" and "netstat -r" | 2016-09-01 | 1 | -5/+7 | |
| | | | | | output. Sort them according to the RTF_... defines in route.h. OK claudio@ mpi@ | ||||
* | Pull in <sys/select.h> for howmany() and NBBY, used by various net*/*.h | 2016-08-27 | 4 | -4/+8 | |
| | | | | ok deraadt@ | ||||
* | Pull in <sys/time.h> for struct timespec and timeval | 2016-08-27 | 1 | -1/+2 | |
| | | | | ok deraadt@ | ||||
* | %lld -> %llu for u_int64_t struct fields. | 2016-08-13 | 1 | -33/+33 | |
| | |||||
* | As the relevant struct's (e.g. tcpstat) use [u_]int64_t types, the | 2016-08-13 | 1 | -44/+44 | |
| | | | | | | | proper printf() format is %ll[ud], not the antediluvian %q[ud]. Reminded by guenther@'s proposed retirement of quad types. ok tedu@ | ||||
* | To tune the TCP SYN cache we need more information. Print the | 2016-07-20 | 3 | -8/+31 | |
| | | | | | relevant counters with netstat -s -p tcp. OK henning@ | ||||
* | Introduce RTF_MULTICAST and flag corresponding IPv6 routes as such | 2016-07-13 | 2 | -4/+5 | |
| | | | | | | instead of abusing RTF_CLONING. Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@ | ||||
* | In netstat, display correct counter for 'no basic MCS set' error. | 2016-06-05 | 1 | -2/+2 | |
| | | | | ok sthen@ tb@ | ||||
* | Display block ack window slide counter. | 2016-04-28 | 1 | -1/+2 | |
| | | | | with and ok tb@ | ||||
* | Make netstat -W show new 802.11n counters. Requires a new kernel. | 2016-04-27 | 1 | -1/+25 | |
| | | | | ok deraadt mpi | ||||
* | Print tcps_noport with netstat -s like it is already done for udp. | 2016-04-26 | 1 | -1/+2 | |
| | | | | OK mpi@ |