From e36067f4d20638ec9128b8055c3dfc3b1a3163ef Mon Sep 17 00:00:00 2001 From: Yuxuan Luo Date: Tue, 5 Jul 2022 15:01:49 -0400 Subject: [PATCH] SCTP: Support PAD chunk Add support for printing PAD chunk based on RFC4820 section3. Example: [PAD] --- print-sctp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/print-sctp.c b/print-sctp.c index d95e98154..62a512488 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -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 @@ -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" },