mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
tcpsso: support TIME_WAIT state
TCP endpoints in TIME_WAIT are not handled in a special way anymore. Therefore, they can be handled now by tcpsso. Reviewed by: rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43351
This commit is contained in:
parent
30409ecdb6
commit
e179d9739b
|
@ -74,12 +74,10 @@ and value
|
|||
on a TCP endpoint from the command line.
|
||||
.Pp
|
||||
TCP endpoints in the
|
||||
.Dv TIME_WAIT
|
||||
state can not be handled by
|
||||
.Nm .
|
||||
TCP endpoints in the
|
||||
.Dv SYN_RCVD
|
||||
state can only be handled if their prior state was
|
||||
state can only be handled by
|
||||
.Nm
|
||||
if their prior state was
|
||||
.Dv SYN_SENT .
|
||||
.Pp
|
||||
.Op Ar level
|
||||
|
@ -176,7 +174,9 @@ is one of
|
|||
.Dv FIN_WAIT_1 ,
|
||||
.Dv CLOSING ,
|
||||
.Dv LAST_ACK ,
|
||||
.Dv FIN_WAIT_2 .
|
||||
.Dv FIN_WAIT_2,
|
||||
or
|
||||
.Dv TIME_WAIT .
|
||||
Using
|
||||
.Dv SYN_RCVD
|
||||
only applies to TCP endpoints in the state
|
||||
|
|
|
@ -115,10 +115,6 @@ tcpssoall(const char *ca_name, const char *stack, int state,
|
|||
continue;
|
||||
|
||||
|
||||
/* Skip endpoints in TIME WAIT. */
|
||||
if (xtp->t_state == TCPS_TIME_WAIT)
|
||||
continue;
|
||||
|
||||
/* If requested, skip sockets not having the requested state. */
|
||||
if ((state != -1) && (xtp->t_state != state))
|
||||
continue;
|
||||
|
@ -453,7 +449,6 @@ main(int argc, char *argv[])
|
|||
argc -= optind;
|
||||
argv += optind;
|
||||
if ((state == TCP_NSTATES) ||
|
||||
(state == TCPS_TIME_WAIT) ||
|
||||
(argc < 2) || (argc > 3) ||
|
||||
(apply_all && apply_subset) ||
|
||||
(apply_all && apply_specific) ||
|
||||
|
|
Loading…
Reference in a new issue