summaryrefslogtreecommitdiffstats
path: root/usr.bin/sockstat
Commit message (Collapse)AuthorAgeFilesLines
* Update the usage with the new jail option.thompsa2012-06-271-1/+1
| | | | | Spotted by: Jason Hellenthal MFC after: 3 days
* - Updated TOE support in the kernel.np2012-06-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* Allow the socket list to be limited to a specific jail id.thompsa2012-05-242-2/+35
| | | | No objections: current@
* Try to avoid ambiguity when sysctl returns ENOMEM additionallytrociny2012-02-011-6/+7
| | | | | | | | | | | | checking the returned oldlen: when ENOMEM is due to the supplied buffer being too short the return oldlen is equal to buffer size. Without this additional check sockstat gets stuck in loop leaking the memory if the returned ENOMEM was due the exceeded memorylocked limit. This is easily can be observed running `limits -l 1k sockstat'. Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
* sockstat: Also show sockets not associated with a file descriptor.jilles2012-01-242-69/+75
| | | | | | | | | | Sockets not associated with a file descriptor include TCP TIME_WAIT states and sockets created via the socket(9) API such as from rpc.lockd and the NFS client. PR: bin/164081 MFC after: 2 weeks No objection: des
* Reencode files from latin1 to UTF-8.uqs2011-12-302-2/+2
| | | | | | | This makes a tiny percentage of entries in calendars ugly for latin1 users, but fixes them for UTF-8 users. This badly needs a solution involving locale-dependent re-encoding.
* o Make sockstat -6 output more readable for long ipv6maxim2010-03-301-0/+2
| | | | | | | | | addresses (most of them apart from ::1): put a whitespace between local and remote address:port pairs. PR: bin/145194 Submitted by: Fedor Dikarev MFC after: 2 weeks
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Mute some warnings on uninitialized variables.ed2010-01-021-2/+2
| | | | | The code does the right thing, but the compiler is unable to figure it out. All paths that use that variable use the same invariant.
* Note that sockstat(1) does not display kernel-owned sockets.des2009-12-211-0/+7
| | | | | Submitted by: infofarmer@ MFC after: 2 weeks
* Add manual page links to advertise procstat(1) a little better.trasz2009-07-091-1/+2
| | | | Approved by: re (kib)
* Remove unused v6 macro aliases for inpcb fields:rwatson2009-03-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | in6p_ip6_nxt in6p_vflag in6p_flags in6p_socket in6p_lport in6p_fport in6p_ppcb Remove unused v6 macro aliases for inpcb flags: IN6P_HIGHPORT IN6P_LOWPORT IN6P_ANONPORT IN6P_RECVIF IN6P_MTUDISC IN6P_FAITH IN6P_CONTROLOPTS References to in6p_lport and in6_fport in sockstat are also replaced with normal inp_lport and inp_fport references. MFC after: 3 days Reviewed by: bz
* Make sure the entries don't run into each other when they're longer thandes2009-01-301-6/+6
| | | | | | | | the allotted space. PR: bin/129318 Submitted by: Ighighi <ighighi@gmail.com> MFC after: 3 weeks
* Add -L to usage().bms2008-05-191-1/+1
|
* Add an -L option to ignore loopback Internet sockets.bms2008-05-192-3/+24
| | | | MFC after: 2 weeks
* o Do not warn if the process exits before we get its name.maxim2007-06-161-1/+3
| | | | | | PR: bin/113777 Submitted by: Dmitrij Tejblum MFC after: 1 week
* Use proc name (ki_comm) instead of thread name (ki_ocomm) as these may nowemaste2007-03-221-1/+1
| | | | be different.
* In revision 1.14 I broke the -4 and -6 options of sockstat(1).keramida2006-11-121-10/+5
| | | | | | | | | | | | | | | | | Using either one of the two would result in an empty protos[] array, and no sockets were actually listed: % sockstat -4 USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS % sockstat -6 USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS % Fix this bug by tweaking appropriately the logic of handling opt_4, opt_6, opt_u and protos_defined. Submitted by: des Pointy hat: keramida
* Add support for filtering sockets by protocol type. The defaultkeramida2006-11-112-14/+127
| | | | | | | | | | | | | | | | | | | behavior of sockstat(1) will still be to show "udp", "tcp" and "divert" protocols, but we can now provide a (comma-separated) list of protocols, as in: % sockstat -P tcp to list only TCP sockets, or we can filter more than one protocol by separating the protocol names with a comma: % sockstat -P tcp,udp Protocol names are parsed with getprotobyname(3), so any protocol whose name is listed in `/etc/protocols' should work fine. Submitted by: Josh Carroll <josh.carroll@psualum.com> Approved by: des
* Don't free(sock) before it's even allocated.des2005-06-101-1/+0
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 1 week
* Let bsd.prog.mk set SRCS and MAN to their default values.ru2005-01-281-1/+0
|
* Scheduled mdoc(7) sweep.ru2005-01-111-2/+1
|
* Unbreak sockstat(1) on systems without the divert protocol.ru2004-12-061-0/+2
|
* Show divert(4) sockets as well.ru2004-12-051-0/+6
|
* Do not display bogus entries for sockets in the TIME_WAIT or similarroam2004-08-252-1/+18
| | | | | | | | | | states that no longer have a corresponding file descriptor - until now, sockstat would mostly randomly match null kern.file.*.xf_data fields with the first mostly-closed socket. This bugfix is a RELENG_5 candidate. Approved by: andre
* make sockstat not print wierd addresses on not connected unix domain socketsjmg2003-07-191-1/+5
| | | | | Pointed out by: rwatson Reviewed by: peter
* Finish the implementation of the -p switch so that itmux2003-06-071-0/+26
| | | | | actually works. I have no idea why this wasn't finished and happened to try to use it.
* To reserve space for 65536 bits, allocaterobert2003-05-091-1/+1
| | | | | | | | | | 65536 / (sizeof(int) * CHAR_BITS) `int's instead of 65536 / (sizeof(int) * CHAR_BITS) bytes to avoid a possible segmentation fault if ports above 16383 are specified via the -p option on a platform with 4 byte wide ints. Approved by: re (bmah) Reported by: Marco Wertejuk <wertejuk@mwcis.com>
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-131-2/+2
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Change struct file f_data to un_data, a union of the correct structdillon2003-01-121-2/+2
| | | | | | | | | | pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit.
* mdoc(7) police: markup polishing.ru2002-11-261-4/+4
| | | | Approved by: re
* Use a cast to `void *' before casting to a pointer to a structurerobert2002-08-021-5/+8
| | | | | | | to stop GCC emitting warnings about increased alignment requirements which broke the build for sparc64. Approved by: des
* Don't depend on namespace pollution from <netinet/in_pcb.h>.des2002-08-011-0/+2
| | | | Submitted by: bde
* Implement the -l and -c options, which I'd forgotten.des2002-08-011-6/+17
|
* Rewrite sockstat(1) in C.des2002-07-314-257/+596
| | | | Sponsored by: DARPA, NAI Labs
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Drop maintainership of this, it serves no purpose.des2002-04-151-1/+0
|
* Spell "FreeBSD" with "F" and "BSD" in uppercase.ru2001-08-131-1/+1
|
* mdoc(7) police: fix markup.ru2001-08-101-9/+22
|
* Allow the user to specify port ranges against which to match inet sockets.des2001-08-072-3/+76
| | | | Suggested by: roam
* Fix 64 bit issues so that sockstat && fstat work correctly on alpha.mjacob2001-07-251-1/+1
| | | | | | PR: 29231 Submitted by: pherman@frenchfries.net MFC after: 2 weeks
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* beforeinstall -> SCRIPTS.ru2001-04-071-4/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.des2001-03-151-1/+1
|
* Add (and document) options for showing only listening or connected sockets.des2001-03-062-11/+39
|
* Prepare for mdoc(7)NG.ru2001-01-161-2/+2
|
* mdoc(7) police: added missing .Os call.ru2000-12-141-0/+1
|
* Spell the des's name correctly.ru2000-11-141-1/+1
|
* Skip sockets with no SCBdes2000-10-131-0/+2
|
OpenPOWER on IntegriCloud