Skip to content

Commit

Permalink
sctp: add SCTP_CID_I_DATA and SCTP_CID_I_FWD_TSN conversion in sctp_c…
Browse files Browse the repository at this point in the history
…name

After the support for SCTP_CID_I_DATA and SCTP_CID_I_FWD_TSN chunks,
the corresp conversion in sctp_cname should also be added. Otherwise,
in some places, pr_debug will print them as "unknown chunk".

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Xin Long authored and David S. Miller committed Feb 12, 2018
1 parent 27af86b commit 947820b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/sctp/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ const char *sctp_cname(const union sctp_subtype cid)
case SCTP_CID_RECONF:
return "RECONF";

case SCTP_CID_I_DATA:
return "I_DATA";

case SCTP_CID_I_FWD_TSN:
return "I_FWD_TSN";

default:
break;
}
Expand Down

0 comments on commit 947820b

Please sign in to comment.