Skip to content

Commit

Permalink
SCTP: Support PAD chunk
Browse files Browse the repository at this point in the history
Add support for printing PAD chunk based on RFC4820 section3.

Example:
[PAD]
  • Loading branch information
Yuxuan Luo authored and fxlb committed May 1, 2023
1 parent 5998c79 commit 17da16b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions print-sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
#define SCTP_I_DATA 0x40
#define SCTP_ASCONF_ACK 0x80
#define SCTP_RE_CONFIG 0x82
#define SCTP_PAD_CHUNK 0x84
#define SCTP_FORWARD_CUM_TSN 0xc0
#define SCTP_ASCONF 0xc1
#define SCTP_I_FORWARD_TSN 0xc2
Expand All @@ -136,6 +137,7 @@ static const struct tok sctp_chunkid_str[] = {
{ SCTP_SHUTDOWN_COMPLETE, "SHUTDOWN COMPLETE" },
{ SCTP_I_DATA, "I-DATA" },
{ SCTP_RE_CONFIG, "RE-CONFIG" },
{ SCTP_PAD_CHUNK, "PAD" },
{ SCTP_FORWARD_CUM_TSN, "FOR CUM TSN" },
{ SCTP_ASCONF, "ASCONF" },
{ SCTP_ASCONF_ACK, "ASCONF-ACK" },
Expand Down

0 comments on commit 17da16b

Please sign in to comment.