summaryrefslogtreecommitdiffstats
path: root/isisd/isis_pdu_counter.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-30 16:08:47 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-01-31 21:15:42 +0100
commita348c9456f88d45b35d7e293208a6cc348cf5ad6 (patch)
treea45a9221aea3ef0d1937bfe276c56aaaab926d6a /isisd/isis_pdu_counter.c
parentpathd: Add missing enum's to switch statement (diff)
downloadfrr-a348c9456f88d45b35d7e293208a6cc348cf5ad6.tar.xz
frr-a348c9456f88d45b35d7e293208a6cc348cf5ad6.zip
isisd: Add missing enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'isisd/isis_pdu_counter.c')
-rw-r--r--isisd/isis_pdu_counter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/isisd/isis_pdu_counter.c b/isisd/isis_pdu_counter.c
index ec2a0c207..bc1a57ccf 100644
--- a/isisd/isis_pdu_counter.c
+++ b/isisd/isis_pdu_counter.c
@@ -77,9 +77,11 @@ static const char *pdu_counter_index_to_name(enum pdu_counter_index index)
return "L1 PSNP";
case L2_PARTIAL_SEQ_NUM_INDEX:
return "L2 PSNP";
- default:
+ case PDU_COUNTER_SIZE:
return "???????";
}
+
+ assert(!"Reached end of function where we were not expecting to");
}
void pdu_counter_count(pdu_counter_t counter, uint8_t pdu_type)