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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2023-10-13 07:17:17 -04:00
parent 02cbd97801
commit f024e4db71
1 changed files with 3 additions and 1 deletions

View File

@ -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) {