summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
Commit message (Collapse)AuthorAgeFilesLines
* - Updated TOE support in the kernel.np2012-06-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs. These are available as t3_tom and t4_tom modules that augment cxgb(4) and cxgbe(4) respectively. The cxgb/cxgbe drivers continue to work as usual with or without these extra features. - iWARP driver for Terminator 3 ASIC (kernel verbs). T4 iWARP in the works and will follow soon. Build-tested with make universe. 30s overview ============ What interfaces support TCP offload? Look for TOE4 and/or TOE6 in the capabilities of an interface: # ifconfig -m | grep TOE Enable/disable TCP offload on an interface (just like any other ifnet capability): # ifconfig cxgbe0 toe # ifconfig cxgbe0 -toe Which connections are offloaded? Look for toe4 and/or toe6 in the output of netstat and sockstat: # netstat -np tcp | grep toe # sockstat -46c | grep toe Reviewed by: bz, gnn Sponsored by: Chelsio communications. MFC after: ~3 months (after 9.1, and after ensuring MFC is feasible)
* Eliminate an unused parameter of static method igmp_stats_live_old().delphij2012-04-131-2/+2
| | | | MFC after: 1 month
* With pf 4.5 import the name of pfsync stats sysctl has changed, thusglebius2012-04-041-2/+2
| | | | 'netstat -sp pfsync' got broken. Fix this.
* After r232745, which makes sure __bswap16(), ntohs() and htons() returndim2012-03-091-3/+0
| | | | | | | | | | | | | __uint16_t, we can partially undo r228668. Note the remark "Work around a clang false positive with format string warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect. Before r232745, on some arches, the ntohs() macros did in fact return int, not uint16_t, so clang was right in warning about the %hu format string. MFC after: 2 weeks
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-281-3/+1
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* Merge multi-FIB IPv6 support from projects/multi-fibv6/head/:bz2012-02-171-13/+16
| | | | | | | | | | | | Extend the so far IPv4-only support for multiple routing tables (FIBs) introduced in r178888 to IPv6 providing feature parity. This includes an extended rtalloc(9) KPI for IPv6, the necessary adjustments to the network stack, and user land support as in netstat. Sponsored by: Cisco Systems, Inc. Reviewed by: melifaro (basically) MFC after: 10 days
* Don't print a warning when using netstat to printtuexen2012-01-251-1/+2
| | | | | | | SCTP statistics when there is not SCTP in the kernel. This problem was reported by Sean Mahood. MFC after: 1 week.
* In ng_socket(4) expose less kernel internals to userland. This commitglebius2012-01-231-8/+2
| | | | breaks ABI, but makes probability of ABI breakage in future less.
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+0
| | | | | | | error: variable 'ifnetfound' set but not used Approved by: dim MFC after: 3 days
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-034-8/+8
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Spelling fixes for usr.bin/uqs2011-12-301-1/+1
|
* o Convert IPv6 read-only stats sysctls to the read-write ones.maxim2011-12-191-7/+13
| | | | | | | | | o Teach netstat(1) -z to reset these stats sysctls. PR: bin/153206 Reviewed by: glebuis Sponsored by: NGINX, Inc. MFC after: 1 month
* Revert r228650, and work around the clang false positive with printfdim2011-12-172-1/+6
| | | | | | | formats in usr.bin/netstat/atalk.c by conditionally adding NO_WFORMAT to the Makefile instead. MFC after: 1 week
* In usr.bin/netstat/atalk.c, work around a clang false positive withdim2011-12-171-1/+1
| | | | | | printf format warnings and conditional operators. MFC after: 1 week
* Fix the following bugs related to the SCTP support of netstat:tuexen2011-07-221-113/+204
| | | | | | | | | | | | * Correctly handle -a. * -A isn't supported. * Show all closed 1-to-1 and 1-to-many style sockets. * Show all listening 1-to-many style sockets. * Use consistent formatting for -W. PR: 150642 Approved by: re@ MFC after: 4 weeks.
* Truncate link addresses like it is done for anytuexen2011-07-121-1/+1
| | | | | | other address type. MFC after: 4 weeks
* Teach netstat(1) about the new global netisr policy sysctl,rwatson2011-05-241-12/+53
| | | | | | | | net.isr.dispatch, and about per-protocol dispatch policies. MFC after: 3 weeks Reviewed by: bz Sponsored by: Juniper Networks, Inc.
* Fixed sockets display somewhat (-L, -T, -x, -Lx, with and without -A).ru2011-03-261-45/+37
| | | | | | (I didn't try to fix negative TCP timers with -x.) MFC after: 3 days
* - Merge in OFED 1.5.3 from projects/ofed/headjeff2011-03-213-8/+28
|
* Fix typo.brucec2011-03-131-1/+1
|
* While printing out the WSID and CPU ID only the first time it appears forrwatson2011-01-241-8/+2
| | | | | | | | | | each workstream, rather than on every protocol, is prettier, it makes machine-parsing of netstat -Q output a lot harder. Repeat the information and hope that the user forgives us slightly dense formatting. MFC after: 3 days Reported by: bz Sponsored by: Juniper Networks
* Fix off-by-one whitespace error in netstat -Q workstream listing.rwatson2011-01-241-4/+4
| | | | | | Reported by: bz MFC after: 3 days Sponsored by: Juniper Networks
* - Hide the internal scope address representation of the KAME IPv6ume2011-01-203-22/+36
| | | | | | | | stack from the output of `netstat -ani'. - The node-local multicast address in the output of `netstat -rn' should be handled as well. Spotted by: Bernd Walter <ticso__at__cicely7.cicely.de>
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-1111-44/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Fix typo.brucec2010-11-271-1/+1
|
* Restore the (state) and \n printout when not using -T.gnn2010-11-221-2/+3
| | | | | Pointed out by: brucec@ MFC after: 3 weeks
* When netstat was run with -i/-I and -w1 to produce running counters, the idroprstone2010-11-181-0/+1
| | | | | | | field printed an absolute value rather than the delta from the last value Approved by: emaste (mentor) MFC after: 1 week
* Add new, per connection, statistics for TCP, including:gnn2010-11-174-18/+39
| | | | | | | | | | Retransmitted Packets Zero Window Advertisements Out of Order Receives These statistics are available via the -T argument to netstat(1). MFC after: 2 weeks
* Remove superfluous cast in usr.bin/netstat/sctp.c.dim2010-10-081-1/+1
| | | | | | Found by: clang Submitted by: Norberto Lopes, nlopes dot ml at gmail dot com Approved by: rpaulo (mentor)
* Show hostcache statistics.ru2010-10-051-0/+3
| | | | Submitted by: Maxim Dounin
* Remove more extraneous ;s.emaste2010-07-151-1/+1
|
* Now fix functionality of 'netstat -f netgraph' that hasn't workedglebius2010-03-121-3/+3
| | | | | | | | | | | | starting from netgraph import in 1999. netstat(8) used pointer to node as node address, oops. That didn't work, we need the node ID in brackets to successfully address a node. We can't look into ng_node, due to inability to include netgraph/netgraph.h in userland code. So let the node make a hint for a userland, storing the node ID in its private data. MFC after: 2 weeks
* Prefer vocabulary of 'Current' and 'Limit' to 'Value' and 'Maximum' inrwatson2010-03-011-1/+1
| | | | | | | netstat -Q. MFC after: 6 days Sponsored by: Juniper Networks
* Teach netstat -Q to work with -N and -M by adding libkvm versions of datarwatson2010-03-013-26/+278
| | | | | | | | | query routines. This code is necessarily more fragile in the presence of kernel changes than querying the kernel via sysctl (the default), but useful when investigating crashes or live kernel state via firewire. MFC after: 1 week Sponsored by: Juniper Networks
* Update date on netstat(1) for -Q.rwatson2010-02-221-1/+1
| | | | | Suggested by: bz MFC after: 1 week
* Teach netstat(1) to print out netisr statistics when given the -Q argument.rwatson2010-02-225-4/+298
| | | | | | | | Currently supports only reporting on live systems via sysctl, kmem support needs to be edded. MFC after: 1 week Sponsored by: Juniper Networks
* Add a new option, -q howmany, which when used in conjuction with -w,delphij2010-01-114-3/+18
| | | | | | | | exits netstat after _howmany_ outputs. Requested by: thomasa Reviewed by: freebsd-net (bms, old version in early 2007) MFC after: 1 month
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-1311-0/+20
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-1111-20/+0
| | | | Tested with: make universe
* Remove -t from the manpage and usage.jhb2009-12-012-6/+3
|
* Unbreak user space after if_timer/if_watchdog removal in r199975.bz2009-12-013-11/+0
| | | | Tested by: glebius
* Add more statistics variables for IPcomp.bz2009-11-291-0/+10
| | | | | | | Try to version the struct in a backward compatible way. People asked for the versioning of the stats structs in general before. MFC after: 5 days
* Add the possibility to show informations about dropped packets on theattilio2009-11-251-4/+13
| | | | | | | | | input path when showing informations about the interfaces. Obtained from: Sandvine Incorporated Reviewed by: emaste Sponsored by: Sandvine Incorporated MFC: 2 weeks
* Print routing statistics as unsigned short rather than unsigned int,rwatson2009-10-151-5/+5
| | | | | | | | otherwise sign extension leads to unlikely values when in the negative range of the signed short structure fields that hold the statistics. The type used to hold routing statistics is arguably also incorrect. MFC after: 3 days
* netstat(1) support for UNIX SOCK_SEQPACKET sockets -- changes were requiredrwatson2009-10-053-7/+26
| | | | | | | only for the kvm case, as we supported SOCK_SEQPACKET via sysctl already. Sponsored by: Google MFC after: 3 months
* In netstat -x, do not try to print out tcp timer status for udp sockets.silby2009-09-231-8/+10
|
* Add the ability to see TCP timers via netstat -x. This can be a usefulsilby2009-09-162-7/+20
| | | | | | | | | feature when you have a seemingly stuck socket and want to figure out why it has not been closed yet. No plans to MFC this, as it changes the netstat sysctl ABI. Reviewed by: andre, rwatson, Eric Van Gyzen
* Add ARP statistics to the kernel and netstat.gnn2009-09-033-0/+47
| | | | | | | | | | | | | | | | | | New counters now exist for: requests sent replies sent requests received replies received packets received total packets dropped due to no ARP entry entrys timed out Duplicate IPs seen The new statistics are seen in the netstat command when it is given the -s command line switch. MFC after: 2 weeks In collaboration with: bz
* Add manual page links to advertise procstat(1) a little better.trasz2009-07-091-1/+2
| | | | Approved by: re (kib)
* Implement the -z (zero counters) option for the various bpf counters.csjp2009-06-192-1/+9
| | | | | | | | Add necessary changes to the kernel for this (basically introduce a bpf_zero_counters() function). As well, update the man page. MFC after: 1 month Discussed with: rwatson
OpenPOWER on IntegriCloud