From 237aed502bcbb5f9e6d373555814dc418aeb8aee Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 13 Oct 2023 07:17:17 -0400 Subject: [PATCH] ldpd: Clarify error situation for different problems Clarify the fatal error message recorded when an error situation happens. Disambiguating the default case from the TLV_TYPE_DYNAMIC_CAP case. Signed-off-by: Donald Sharp --- ldpd/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ldpd/init.c b/ldpd/init.c index f0cb98e5c03e..40004abb5a0c 100644 --- a/ldpd/init.c +++ b/ldpd/init.c @@ -229,9 +229,11 @@ send_capability(struct nbr *nbr, uint16_t capability, int enable) * Announcement Parameter in Capability messages sent to * its peers". */ - /* FALLTHROUGH */ + fatalx("send_capability: An LDP speaker MUST NOT include the Dynamic Capability Announcement Parameter"); + break; default: fatalx("send_capability: unsupported capability"); + break; } if (err) {