|
@@ -159,6 +159,7 @@ static const char *const sctp_timer_tbl[] = {
|
|
|
"TIMEOUT_T4_RTO",
|
|
|
"TIMEOUT_T5_SHUTDOWN_GUARD",
|
|
|
"TIMEOUT_HEARTBEAT",
|
|
|
+ "TIMEOUT_RECONF",
|
|
|
"TIMEOUT_SACK",
|
|
|
"TIMEOUT_AUTOCLOSE",
|
|
|
};
|
|
@@ -166,7 +167,9 @@ static const char *const sctp_timer_tbl[] = {
|
|
|
/* Lookup timer debug name. */
|
|
|
const char *sctp_tname(const sctp_subtype_t id)
|
|
|
{
|
|
|
- if (id.timeout <= SCTP_EVENT_TIMEOUT_MAX)
|
|
|
+ BUILD_BUG_ON(SCTP_EVENT_TIMEOUT_MAX + 1 != ARRAY_SIZE(sctp_timer_tbl));
|
|
|
+
|
|
|
+ if (id.timeout < ARRAY_SIZE(sctp_timer_tbl))
|
|
|
return sctp_timer_tbl[id.timeout];
|
|
|
return "unknown_timer";
|
|
|
}
|