summaryrefslogtreecommitdiffstats
path: root/usr.bin/sockstat
Commit message (Collapse)AuthorAgeFilesLines
* Fix a ton of speelling errorseadler2015-10-211-3/+3
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* Report CLOSED as state for bound sockets for consistency withtuexen2015-08-291-3/+1
| | | | | | | netstat and the way TCP is handled. PR: 201585 MFC after: 3 weeks
* Add SCTP support.tuexen2015-08-262-7/+63
| | | | | PR: 201585 MFC after: 3 weeks
* Remove a variable which is set but never used.tuexen2015-08-261-3/+2
| | | | | PR: 201585 MFC after: 3 weeks
* Print the status on the first line of a socket description, not attuexen2015-08-261-11/+12
| | | | | | | | the last one. This doesn't matter for TCP, but it does for the upcoming SCTP support. PR: 201585 MFC after: 3 weeks
* Move assignments around to avoid a false-positive uninitialized variabledes2015-07-171-2/+2
| | | | | | | warning which broke the sparc64 build. PR: 201585 MFC after: 3 weeks
* Add a -s option which adds a column listing the connection state ifdes2015-07-162-8/+33
| | | | | | | applicable (currently only for TCP). PR: 201585 MFC after: 3 weeks
* - Add SOCK_SEQPACKET support in UNIX-domain socket.hrs2015-06-202-46/+64
| | | | | | | - Display zoneid using % notation in an IPv6 address. - Use nitems(). - Use sstos{in,in6,un} macros to simplify casts. - style(9).
* Don't leak sockets.tuexen2015-06-191-13/+39
| | | | | | | Reported by: Coverity CID: 1306785 MFC after: 3 days
* Fix a bug reported by coverity. Since AF_UNIX sockets don'ttuexen2015-06-181-7/+10
| | | | | | | have multiple addresses, the problem didn't show up during testing. Reported by: Coverity CID: 1306787
* When using -L the code skips a socket if the local or foreigntuexen2015-06-131-2/+2
| | | | | | | | | address is loopback. So it is shown if both are not loopback. The man page says that it is shown if the local or foreign address is not loopback. Change the man page to reflect the code. MFC after: 3 days
* Add support for SCTP.tuexen2015-06-131-2/+241
| | | | MFC after: 3 days
* Allow more than one local or remote address per socket. This is needed totuexen2015-06-131-54/+103
| | | | | | | support SCTP (and MPTCP in the future). No functional change for existing protocols. MFC after: 3 days
* Allow more than one socket entry for a file descriptor. This is neededtuexen2015-06-131-23/+22
| | | | | | | for supporting 1-to-many style SCTP sockets. For other sochets, there is no functional change. MFC after: 3 days
* Simplify printaddr(). No functional change.tuexen2015-06-131-7/+7
| | | | MFC after: 3 days
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+2
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-1/+1
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| | |
| | \
| | \
| | \
| *---. \ Sync from headsjg2012-11-041-1/+2
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |_|/ / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | The code says "or", not "either or". So fix the documentation.tuexen2015-04-071-2/+2
| |_|_|/ |/| | | | | | | | | | | MFC after: 1 week
* | | | use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-1/+1
| |/ / |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* | | 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
|
OpenPOWER on IntegriCloud