History log of /freebsd-10-stable/usr.bin/sockstat/sockstat.c
Revision Date Author Comments
# 336039 06-Jul-2018 jamie

MFC r335921:

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: 229266
Differential Revision: D16047


# 294232 17-Jan-2016 tuexen

MFC r287281:
Report CLOSED as state for bound sockets for consistency with
netstat and the way TCP is handled.


# 294231 17-Jan-2016 tuexen

MFC r287182:
Add SCTP support.


# 294230 17-Jan-2016 tuexen

MFC r287179:
Remove a variable which is set but never used.


# 294228 17-Jan-2016 des

MFH (r287178): print status on first line, not last.
This revision has previously been (incorrectly) recorded as merged.


# 294226 17-Jan-2016 tuexen

MFC r285651:
Move assignments around to avoid a false-positive uninitialized variable
warning which broke the sparc64 build.

This is work from des@ and MFCing was discussed with him.


# 294225 17-Jan-2016 tuexen

MFC r285630:
Add a -s option which adds a column listing the connection state if
applicable (currently only for TCP).

This is work from des@ and MFCing was discussed with him.


# 293290 06-Jan-2016 bdrewery

MFC r289677:

Fix a ton of speelling errors


# 285826 23-Jul-2015 hrs

MFC r284636:

- 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).

Approved by: re (gjb)


# 284694 22-Jun-2015 tuexen

MFC r284604:
Don't leak sockets.

Reported by: Coverity
CID: 1306785


# 284692 22-Jun-2015 tuexen

MFC r284547:
Fix a bug reported by coverity. Since AF_UNIX sockets don't
have multiple addresses, the problem didn't show up during testing.

Reported by: Coverity
CID: 1306787


# 284441 16-Jun-2015 tuexen

MFC r284351:
Simplify printaddr(). No functional change.

MFC r284352:
Allow more than one socket entry for a file descriptor. This is needed
for supporting 1-to-many style SCTP sockets. For other sochets, there
is no functional change.

MFC r284353:
Allow more than one local or remote address per socket. This is needed to
support SCTP (and MPTCP in the future). No functional change for existing
protocols.

MFC r284354:
Add support for SCTP.

MFC r284355:
When using -L the code skips a socket if the local or foreign
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.


# 285826 23-Jul-2015 hrs

MFC r284636:

- 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).

Approved by: re (gjb)


# 284694 22-Jun-2015 tuexen

MFC r284604:
Don't leak sockets.

Reported by: Coverity
CID: 1306785


# 284692 22-Jun-2015 tuexen

MFC r284547:
Fix a bug reported by coverity. Since AF_UNIX sockets don't
have multiple addresses, the problem didn't show up during testing.

Reported by: Coverity
CID: 1306787


# 284441 16-Jun-2015 tuexen

MFC r284351:
Simplify printaddr(). No functional change.

MFC r284352:
Allow more than one socket entry for a file descriptor. This is needed
for supporting 1-to-many style SCTP sockets. For other sochets, there
is no functional change.

MFC r284353:
Allow more than one local or remote address per socket. This is needed to
support SCTP (and MPTCP in the future). No functional change for existing
protocols.

MFC r284354:
Add support for SCTP.

MFC r284355:
When using -L the code skips a socket if the local or foreign
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.