netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH next] man: ss.8: add description for SCTP related entries.
@ 2024-11-28  4:43 rawal.abhishek92
  2024-12-02 19:29 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: rawal.abhishek92 @ 2024-11-28  4:43 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern, arawal, jamie.bainbridge, Abhishek Rawal

From: Abhishek Rawal <rawal.abhishek92@gmail.com>

SCTP protocol support is included, but manpage lacks
the description for its entries. Add the missing
descriptions so that SCTP information is complete.

Signed-off-by: Abhishek Rawal <rawal.abhishek92@gmail.com>
Reviewed-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
---
 man/man8/ss.8 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

diff --git a/man/man8/ss.8 b/man/man8/ss.8
index e23af826f467433623dcdc639e1023a87e487e81..736c51d11b59ae193a9173ae0ec2a37f4e6c4853 100644
--- a/man/man8/ss.8
+++ b/man/man8/ss.8
@@ -167,7 +167,7 @@ Show thread using socket. Implies
 .BR \-p .
 .TP
 .B \-i, \-\-info
-Show internal TCP information. Below fields may appear:
+Show internal TCP & SCTP information. Below fields may appear:
 .RS
 .P
 .TP
@@ -277,6 +277,58 @@ a helper variable for TCP internal auto tuning socket receive buffer
 .B tcp-ulp-mptcp flags:[MmBbJjecv] token:<rem_token(rem_id)/loc_token(loc_id)> seq:<sn> sfseq:<ssn> ssnoff:<off> maplen:<maplen>
 MPTCP subflow information
 .P
+.TP
+.B locals:<locals>
+Local SCTP IP addresses.
+.P
+.TP
+.B peers:<peers>
+Peer SCTP IP addresses.
+.P
+.TP
+.B tag:<tag>
+Tag expected in every inbound packet and sent in the INIT or INIT ACK chunk i.e Verification Tag.
+.P
+.TP
+.B state:<state>
+State of association i.e COOKIE-WAIT, COOKIE-ECHOED, ESTABLISHED, SHUTDOWN-PENDING, SHUTDOWN-SENT, SHUTDOWN-RECEIVED, SHUTDOWN-ACK-SENT.
+.P
+.TP
+.B rwnd:<rwnd>
+The last advertised value of rwnd over a SACK chunk.
+.P
+.TP
+.B prwnd:<prwnd>
+Current calculated value of the peer's rwnd.
+.P
+.TP
+.B ptag:<ptag>
+Tag expected in every outbound packet except in the INIT chunk i.e Peer Tag.
+.P
+.TP
+.B instrms:<instrms>
+Maximum number of inbound streams the association supports.
+.P
+.TP
+.B outstrms:<outstrms>
+Maximum number of outbound streams the association supports.
+.P
+.TP
+.B maxburst:<maxburst>
+Maximum number of new data packets that can be sent in a burst.
+.P
+.TP
+.B maxseg:<maxseg>
+Message size after which SCTP fragmentation will occur.
+.P
+.TP
+.B unackdata:<unackdata>
+The number of unacknowledged data chunks.
+.P
+.TP
+.B penddata:<penddata>
+Chunks missing from the peer.
+.P
 .RE
 .TP
 .B \-\-tos
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH next] man: ss.8: add description for SCTP related entries.
  2024-11-28  4:43 [PATCH next] man: ss.8: add description for SCTP related entries rawal.abhishek92
@ 2024-12-02 19:29 ` Stephen Hemminger
  2024-12-03  2:51   ` Abhishek Rawal
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2024-12-02 19:29 UTC (permalink / raw)
  To: rawal.abhishek92; +Cc: netdev, dsahern, arawal, jamie.bainbridge

On Thu, 28 Nov 2024 10:13:40 +0530
rawal.abhishek92@gmail.com wrote:

> From: Abhishek Rawal <rawal.abhishek92@gmail.com>
> 
> SCTP protocol support is included, but manpage lacks
> the description for its entries. Add the missing
> descriptions so that SCTP information is complete.
> 
> Signed-off-by: Abhishek Rawal <rawal.abhishek92@gmail.com>
> Reviewed-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>

It is good to have more entries documented, but throwing entries
into the "some of the following" list just adds to an already messy section.

Similar issue is true for mptcp fields.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH next] man: ss.8: add description for SCTP related entries.
  2024-12-02 19:29 ` Stephen Hemminger
@ 2024-12-03  2:51   ` Abhishek Rawal
  0 siblings, 0 replies; 3+ messages in thread
From: Abhishek Rawal @ 2024-12-03  2:51 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, dsahern, arawal, jamie.bainbridge

> It is good to have more entries documented, but throwing entries
> into the "some of the following" list just adds to an already messy section.

Okay, I agree. Thank you for the feedback.

I think of two implementation ideas for v2 :
a] Create headings per protocol under --info.
b] Update entire --info section for different protocols & its
descriptions. Similar to : STATE-FILTER.

May I have your opinion please ? Do you have any other implementation ideas ?

On Tue, 3 Dec 2024 at 00:59, Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Thu, 28 Nov 2024 10:13:40 +0530
> rawal.abhishek92@gmail.com wrote:
>
> > From: Abhishek Rawal <rawal.abhishek92@gmail.com>
> >
> > SCTP protocol support is included, but manpage lacks
> > the description for its entries. Add the missing
> > descriptions so that SCTP information is complete.
> >
> > Signed-off-by: Abhishek Rawal <rawal.abhishek92@gmail.com>
> > Reviewed-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
>
> It is good to have more entries documented, but throwing entries
> into the "some of the following" list just adds to an already messy section.
>
> Similar issue is true for mptcp fields.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-03  2:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28  4:43 [PATCH next] man: ss.8: add description for SCTP related entries rawal.abhishek92
2024-12-02 19:29 ` Stephen Hemminger
2024-12-03  2:51   ` Abhishek Rawal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).