Skip to contentSkip to conversation

ss: Correct state 'listen' to 'listening' in docs and command help

PATCH In review Brian Dyson 2 participants 2 messages Jun 10, 2015 – Jun 25, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ss: Correct state 'listen' to 'listening' in docs and command help

Minor change to correct states in ss command documentation and command line help.
The correct state term is 'listening' not 'listen' (see definition of sstate_namel in misc/ss.c).

---
 doc/ss.sgml   | 4 ++--
 man/man8/ss.8 | 4 ++--
 misc/ss.c     | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
doc/ss.sgml +1 -1
index 3024b57..de168f7 100644
@@ -371,10 +371,10 @@ Available identifiers are:
 <itemize>
 <item> All standard TCP states: <tt/established/, <tt/syn-sent/,
 <tt/syn-recv/, <tt/fin-wait-1/, <tt/fin-wait-2/, <tt/time-wait/,
-<tt/closed/, <tt/close-wait/, <tt/last-ack/, <tt/listen/ and <tt/closing/.
+<tt/closed/, <tt/close-wait/, <tt/last-ack/, <tt/listening/ and

<tt/closing/.

<item><tt/all/ - for all the states
-<item><tt/connected/ - all the states except for <tt/listen/ and <tt/closed/
+<item><tt/connected/ - all the states except for <tt/listening/ and <tt/closed/
<item><tt/synchronized/ - all the <tt/connected/ states except for <tt/syn-sent/
<item><tt/bucket/ - states, which are maintained as minisockets, i.e.

man/man8/ss.8 +0 -0
index b7fbaef..4978eff 100644
@@ -142,14 +142,14 @@ Available identifiers are:
 
 All standard TCP states:
 .BR established ", " syn-sent ", " syn-recv ", " fin-wait-1 ", " fin-wait-2

", " time-wait ", " closed ", " close-wait ", " last-ack ", " -.BR listen " and " closing.
+.BR listening " and " closing.

.B all
- for all the states

.B connected
- all the states except for
-.BR listen " and " closed
+.BR listening " and " closed

.B synchronized
- all the

misc/ss.c +0 -0
index 347e3a1..3a0d524 100644
@@ -3411,11 +3411,11 @@ static void _usage(FILE *dest)
 "   -F, --filter=FILE   read filter information from FILE\n"
 "       FILTER := [ state STATE-FILTER ] [ EXPRESSION ]\n"
 "       STATE-FILTER :=

{all|connected|synchronized|bucket|big|TCP-STATES}\n"
-" TCP-STATES :=
{established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|closed|close-wait|la st-ack|listen|closing}\n"
+" TCP-STATES :=
{established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|closed|close-wait|la st-ack|listening|closing}\n"
" connected :=
{established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack| closing}\n"
" synchronized :=
{established|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack|closing}\
n"
" bucket := {syn-recv|time-wait}\n"
-" big :=
{established|syn-sent|fin-wait-{1,2}|closed|close-wait|last-ack|listen|closi ng}\n"
+" big :=
{established|syn-sent|fin-wait-{1,2}|closed|close-wait|last-ack|listening|cl osing}\n"

                );

}

#1 lore raw
Quoted 82 lines · On Tue, 9 Jun 2015 19:49:01 -0700 "Brian Dyson" <[email protected]> wrote:

Minor change to correct states in ss command documentation and command line help.
The correct state term is 'listening' not 'listen' (see definition of sstate_namel in misc/ss.c).

---
 doc/ss.sgml   | 4 ++--
 man/man8/ss.8 | 4 ++--
 misc/ss.c     | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
doc/ss.sgml +1 -1
index 3024b57..de168f7 100644
@@ -371,10 +371,10 @@ Available identifiers are:
 <itemize>
 <item> All standard TCP states: <tt/established/, <tt/syn-sent/,
 <tt/syn-recv/, <tt/fin-wait-1/, <tt/fin-wait-2/, <tt/time-wait/,
-<tt/closed/, <tt/close-wait/, <tt/last-ack/, <tt/listen/ and <tt/closing/.
+<tt/closed/, <tt/close-wait/, <tt/last-ack/, <tt/listening/ and

<tt/closing/.

<item><tt/all/ - for all the states
-<item><tt/connected/ - all the states except for <tt/listen/ and <tt/closed/
+<item><tt/connected/ - all the states except for <tt/listening/ and <tt/closed/
<item><tt/synchronized/ - all the <tt/connected/ states except for <tt/syn-sent/
<item><tt/bucket/ - states, which are maintained as minisockets, i.e.

man/man8/ss.8 +0 -0
index b7fbaef..4978eff 100644
@@ -142,14 +142,14 @@ Available identifiers are:
 
 All standard TCP states:
 .BR established ", " syn-sent ", " syn-recv ", " fin-wait-1 ", " fin-wait-2

", " time-wait ", " closed ", " close-wait ", " last-ack ", " -.BR listen " and " closing.
+.BR listening " and " closing.

.B all
- for all the states

.B connected
- all the states except for
-.BR listen " and " closed
+.BR listening " and " closed

.B synchronized
- all the

misc/ss.c +0 -0
index 347e3a1..3a0d524 100644
@@ -3411,11 +3411,11 @@ static void _usage(FILE *dest)
 "   -F, --filter=FILE   read filter information from FILE\n"
 "       FILTER := [ state STATE-FILTER ] [ EXPRESSION ]\n"
 "       STATE-FILTER :=

{all|connected|synchronized|bucket|big|TCP-STATES}\n"
-" TCP-STATES :=
{established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|closed|close-wait|la st-ack|listen|closing}\n"
+" TCP-STATES :=
{established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|closed|close-wait|la st-ack|listening|closing}\n"
" connected :=
{established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack| closing}\n"
" synchronized :=
{established|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack|closing}\
n"
" bucket := {syn-recv|time-wait}\n"
-" big :=
{established|syn-sent|fin-wait-{1,2}|closed|close-wait|last-ack|listen|closi ng}\n"
+" big :=
{established|syn-sent|fin-wait-{1,2}|closed|close-wait|last-ack|listening|cl osing}\n"

Quoted 2 lines
                );

}

The patch has been corrupted by linewrapping in your mailer and therefore can not be applied. Please figure out how to send a patch that does not cause extra line breaks.