All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] sctp: add SCTP_CID_RECONF conversion in sctp_cname
@ 2017-12-18  6:13 ` Xin Long
  0 siblings, 0 replies; 10+ messages in thread
From: Xin Long @ 2017-12-18  6:13 UTC (permalink / raw)
  To: network dev, linux-sctp; +Cc: davem, Marcelo Ricardo Leitner, Neil Horman

Whenever a new type of chunk is added, the corresp conversion in
sctp_cname should be added. Otherwise, in some places, pr_debug
will print it as "unknown chunk".

Fixes: cc16f00f6529 ("sctp: add support for generating stream reconf ssn reset request chunk")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
---
 net/sctp/debug.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/sctp/debug.c b/net/sctp/debug.c
index 3f619fd..291c97b 100644
--- a/net/sctp/debug.c
+++ b/net/sctp/debug.c
@@ -78,6 +78,9 @@ const char *sctp_cname(const union sctp_subtype cid)
 	case SCTP_CID_AUTH:
 		return "AUTH";
 
+	case SCTP_CID_RECONF:
+		return "RECONF";
+
 	default:
 		break;
 	}
-- 
2.1.0


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

end of thread, other threads:[~2017-12-19  4:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18  6:13 [PATCH net] sctp: add SCTP_CID_RECONF conversion in sctp_cname Xin Long
2017-12-18  6:13 ` Xin Long
2017-12-18 13:08 ` Marcelo Ricardo Leitner
2017-12-18 13:08   ` Marcelo Ricardo Leitner
2017-12-19  4:07   ` Xin Long
2017-12-19  4:07     ` Xin Long
2017-12-18 14:37 ` Neil Horman
2017-12-18 14:37   ` Neil Horman
2017-12-18 18:22 ` David Miller
2017-12-18 18:22   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.