sockstat: fix usage stringSponsored by: Netflix, Inc.(cherry picked from commit 6ad26abca5389bc1cc74d6e533fb317df6ab5f89)
sockstat: add -i to display inp_gencntThe inp_gencnt will be used to identify a TCP endpoint by an upcomingcommand line tool to set TCP socket options.Reviewed by: rscheffSponsored by: Netfli
sockstat: add -i to display inp_gencntThe inp_gencnt will be used to identify a TCP endpoint by an upcomingcommand line tool to set TCP socket options.Reviewed by: rscheffSponsored by: Netflix, Inc.Differential Revision: https://reviews.freebsd.org/D34137(cherry picked from commit 5f64777a4fe38acb412762fa92da583a1018e609)
show more ...
sockstat: change check for wildcard sockets to avoid historical classessockstat was checking whether a bound address was "host 0", the lowesthost on a network, using inet_lnaof(). This only works
sockstat: change check for wildcard sockets to avoid historical classessockstat was checking whether a bound address was "host 0", the lowesthost on a network, using inet_lnaof(). This only works for class A/B/C.However, it isn't useful to bind such an address unless it is reallythe unspecified address INADDR_ANY. Change the check to to use that.(cherry picked from commit 64acb29b7d9699c301a55a5431d94374391e4f30)
sockstat(1): Update Synopsis sectionUpdate sockstat(1) manpage so the Synopsis section includes q (silentmode) and the -j argument name is consistent.PR: 256795Reported by: Nick Reilly <nreill
sockstat(1): Update Synopsis sectionUpdate sockstat(1) manpage so the Synopsis section includes q (silentmode) and the -j argument name is consistent.PR: 256795Reported by: Nick Reilly <[email protected]>(cherry picked from commit 5504d8394289853e8c065e88a83fb464cb50d934)
mend
Add "-n" flag to sockstat.sockstat can "hang" on getpwuid() calls in situations when FreeBSDis joined to a directory service (AD/LDAP etc) and the directoryservice fail to answer in a timely mann
Add "-n" flag to sockstat.sockstat can "hang" on getpwuid() calls in situations when FreeBSDis joined to a directory service (AD/LDAP etc) and the directoryservice fail to answer in a timely manner when trying to resolvenumeric UIDs to user names.Submitted by: Caleb St. John <[email protected]>MFC after: 1 week
sockstat: Fix error message when jail_attach failsjail_errmsg is for libjail, jail_attach() is a system call.
Add a -C option to sockstat to display the congestion control for TCPconnections.Reviewed by: rscheffMFC after: 1 weekSponsored by: Netflix, Inc.Differential Revision: https://reviews.freebs
Add a -C option to sockstat to display the congestion control for TCPconnections.Reviewed by: rscheffMFC after: 1 weekSponsored by: Netflix, Inc.Differential Revision: https://reviews.freebsd.org/D26413
sockstat(1): Add EXAMPLES to man pageAdd three examples showing the use of -4, -6, -l, -L, -p and -PReviewed by: gbe@Approved by: bcr@
sockstat: Attach to jail if in new vnetAttach sockstat -j to the specified jail if the jail is in a new vnet.Otherwise we do not see all sockets belonging to the jail.Reviewed by: jamieApproved
sockstat: Attach to jail if in new vnetAttach sockstat -j to the specified jail if the jail is in a new vnet.Otherwise we do not see all sockets belonging to the jail.Reviewed by: jamieApproved by: mmacy (mentor)MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D24413
Make struct xinpcb and friends word-size independent.Replace size_t members with ksize_t (uint64_t) and pointer members(never used as pointers in userspace, but instead as uniqueidenitifiers) wit
Make struct xinpcb and friends word-size independent.Replace size_t members with ksize_t (uint64_t) and pointer members(never used as pointers in userspace, but instead as uniqueidenitifiers) with kvaddr_t (uint64_t). This makes the structsidentical between 32-bit and 64-bit ABIs.On 64-bit bit systems, the ABI is maintained. On 32-bit systems,this is an ABI breaking change. The ABI of most of these structswas previously broken in r315662. This also imposes a small APIchange on userspace consumers who must handle kernel pointersbecoming virtual addresses.PR: 228301 (exp-run by antoine)Reviewed by: jtl, kib, rwatson (various versions)Sponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D15386
Allow jail names (not just IDs) to be specified for: cpuset(1), ipfw(8), sockstat(1), ugidfw(8)These are the last of the jail-aware userland utilities that didn't work with names.PR: 229266MFC
Allow jail names (not just IDs) to be specified for: cpuset(1), ipfw(8), sockstat(1), ugidfw(8)These are the last of the jail-aware userland utilities that didn't work with names.PR: 229266MFC after: 3 daysDifferential Revision: D16047
sockstat: add break that was forgot in 328279Reported by: garga@MFC after: 1 weekX-MFC With: 328279Sponsored by: Gandi.net
sockstat: Add -q option to suppress the header lineMFC after: 1 weekSponsored by: Gandi.net
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Hide struct socket and struct unpcb from the userland.Violators may define _WANT_SOCKET and _WANT_UNPCB respectively andare not guaranteed for stability of the structures. The violatorslist is t
Hide struct socket and struct unpcb from the userland.Violators may define _WANT_SOCKET and _WANT_UNPCB respectively andare not guaranteed for stability of the structures. The violatorslist is the the usual one: libprocstat(3) and netstat(1) internallyand lsof in ports.In struct xunpcb remove the inclusion of kernel structure and adda bunch of spare fields. The xsocket already has socket not included,but add there spares as well. Embed xsockbuf into xsocket.Sort declarations in sys/socketvar.h to separate kernel only fromuserland available ones.PR: 221820 (exp-run)
Remove tailing whitespace.
Add a command line option for using a wider field for displayingaddresses. This allows the table to be consistent when IPv6addresses have to be printed.While there, document the -v option in the m
Add a command line option for using a wider field for displayingaddresses. This allows the table to be consistent when IPv6addresses have to be printed.While there, document the -v option in the man page.Sponsored by: Netflix, Inc.
Add support for printing the path state for SCTP association.
Add printing of the remote encapsulation port for SCTP associations.Sponsored by: Netflix, Inc.
Add support to print the TCP stack being used.Sponsored by: Netflix, Inc.
Shut up gcc.
Hide struct inpcb, struct tcpcb from the userland.This is a painful change, but it is needed. On the one hand, we avoidmodifying them, and this slows down some ideas, on the other hand we stille
Hide struct inpcb, struct tcpcb from the userland.This is a painful change, but it is needed. On the one hand, we avoidmodifying them, and this slows down some ideas, on the other hand we stilleventually modify them and tools like netstat(1) never work on next version ofFreeBSD. We maintain a ton of spares in them, and we already got some ifdefhell at the end of tcpcb.Details:- Hide struct inpcb, struct tcpcb under _KERNEL || _WANT_FOO.- Make struct xinpcb, struct xtcpcb pure API structures, not including kernel structures inpcb and tcpcb inside. Export into these structures the fields from inpcb and tcpcb that are known to be used, and put there a ton of spare space.- Make kernel and userland utilities compilable after these changes.- Bump __FreeBSD_version.Reviewed by: rrs, gnnDifferential Revision: D10018
Fix style(9)Reviewed by: ngie, tuexen, vangyzen, allanjudeApproved by: allanjudeMFC after: 1 weekSponsored by: Rubicon Communications (Netgate)Differential Revision: https://reviews.freebsd.org
Fix style(9)Reviewed by: ngie, tuexen, vangyzen, allanjudeApproved by: allanjudeMFC after: 1 weekSponsored by: Rubicon Communications (Netgate)Differential Revision: https://reviews.freebsd.org/D9588
12345