summaryrefslogtreecommitdiff
path: root/bgpd/bgp_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-14 20:49:14 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 20:50:58 +0000
commit63d430ceee8baed5fddafff2c91066a55594058b (patch)
treebc53ac4b388a1a112b415756191aaf3b50c53dba /bgpd/bgp_errors.c
parent7077f45c690b22c36003bea785a209be682648ad (diff)
bgpd: Convert zlog_warn to flog_warn for bgp_packet.c
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_errors.c')
-rw-r--r--bgpd/bgp_errors.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/bgpd/bgp_errors.c b/bgpd/bgp_errors.c
index 51048b2af9..bf77f748e1 100644
--- a/bgpd/bgp_errors.c
+++ b/bgpd/bgp_errors.c
@@ -98,6 +98,24 @@ static struct log_ref ferr_bgp_warn[] = {
.suggestion = "Ensure BGP has permissions to write the specified file",
},
{
+ .code = BGP_WARN_UPDATE_PACKET_SHORT,
+ .title = "BGP Update Packet is to Small",
+ .description = "The update packet received from a peer is to small",
+ .suggestion = "Determine the source of the update packet and examine that peer for what has gone wrong",
+ },
+ {
+ .code = BGP_WARN_UPDATE_PACKET_LONG,
+ .title = "BGP Update Packet is to large",
+ .description = "The update packet received from a peer is to large",
+ .suggestion = "Determine the source of the update packet and examine that peer for what has gone wrong",
+ },
+ {
+ .code = BGP_WARN_UNRECOGNIZED_CAPABILITY,
+ .title = "Unknown BGP Capability Received",
+ .description = "The negotiation of capabilities has received a capability that we do not know what to do with",
+ .suggestion = "Determine the source of the capability and remove the capability from what is sent",
+ },
+ {
.code = END_FERR,
}
};
@@ -382,4 +400,5 @@ void bgp_error_init(void)
{
log_ref_add(ferr_bgp_warn);
log_ref_add(ferr_bgp_err);
+ log_ref_add(ferr_bgp_warn);
}