forked from Mirror/frr
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:
parent
02cbd97801
commit
f024e4db71
|
@ -229,9 +229,11 @@ send_capability(struct nbr *nbr, uint16_t capability, int enable)
|
||||||
* Announcement Parameter in Capability messages sent to
|
* Announcement Parameter in Capability messages sent to
|
||||||
* its peers".
|
* its peers".
|
||||||
*/
|
*/
|
||||||
fallthrough;
|
fatalx("send_capability: An LDP speaker MUST NOT include the Dynamic Capability Announcement Parameter");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fatalx("send_capability: unsupported capability");
|
fatalx("send_capability: unsupported capability");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in a new issue