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
show more ...
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
This patch fixes two bugs:* sctp46, tcp46, and udp46 sockets are displayed as such and not as sctp4 6, tcp4 6, udp4 6. This bug was introduced in http://svnweb.freebsd.org/base?view=revision&rev
This patch fixes two bugs:* sctp46, tcp46, and udp46 sockets are displayed as such and not as sctp4 6, tcp4 6, udp4 6. This bug was introduced in http://svnweb.freebsd.org/base?view=revision&revision=187915* For SCTP sockets, the the -4 and -6 flags are honoured as much as possible. This means IPv4 sockets are handled correctly, IPv6 sockets are displayed as sctp46, since it is currently not possible to distinguish between sctp6 and sctp46.Approved by: re (gjb)MFC after: 1 week
Fix two types which resulted in setting the address long wrongfor IPv6 addresses.Reported by: pfg@CID: 1347086MFC after: 1 week
Fix a ton of speelling errorsarc lint is helpfulReviewed By: allanjude, wblock, #manpages, [email protected]Differential Revision: https://reviews.freebsd.org/D3337
Report CLOSED as state for bound sockets for consistency withnetstat and the way TCP is handled.PR: 201585MFC after: 3 weeks
Add SCTP support.PR: 201585MFC after: 3 weeks
Remove a variable which is set but never used.PR: 201585MFC after: 3 weeks
Print the status on the first line of a socket description, not atthe last one. This doesn't matter for TCP, but it does for the upcomingSCTP support.PR: 201585MFC after: 3 weeks
Move assignments around to avoid a false-positive uninitialized variablewarning which broke the sparc64 build.PR: 201585MFC after: 3 weeks
Add a -s option which adds a column listing the connection state ifapplicable (currently only for TCP).PR: 201585MFC after: 3 weeks
- Add SOCK_SEQPACKET support in UNIX-domain socket.- Display zoneid using % notation in an IPv6 address.- Use nitems().- Use sstos{in,in6,un} macros to simplify casts.- style(9).
12345