summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_packet.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2018-06-15 23:08:53 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit14454c9fdd59340bbd71766b925f3ebb8fba13ba (patch)
tree2a0c20b157a40891e4f96fa2720887ebf6004ab4 /bgpd/bgp_updgrp_packet.c
parentldpd: Convert to using LIB_ERR_XXX and zlog_ferr (diff)
downloadfrr-14454c9fdd59340bbd71766b925f3ebb8fba13ba.tar.xz
frr-14454c9fdd59340bbd71766b925f3ebb8fba13ba.zip
bgpd: implement zlog_ferr facility for enhance error messages in bgp
Signed-off-by: Don Slice <dslice@cumulusnetworks.com<
Diffstat (limited to 'bgpd/bgp_updgrp_packet.c')
-rw-r--r--bgpd/bgp_updgrp_packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c
index 34ddbfcd1..55253d695 100644
--- a/bgpd/bgp_updgrp_packet.c
+++ b/bgpd/bgp_updgrp_packet.c
@@ -46,6 +46,7 @@
#include "bgpd/bgpd.h"
#include "bgpd/bgp_debug.h"
+#include "bgpd/bgp_errors.h"
#include "bgpd/bgp_fsm.h"
#include "bgpd/bgp_route.h"
#include "bgpd/bgp_packet.h"
@@ -786,7 +787,8 @@ struct bpacket *subgroup_update_packet(struct update_subgroup *subgrp)
* NLRI then
* return */
if (space_remaining < space_needed) {
- zlog_err(
+ zlog_ferr(
+ BGP_ERR_UPDGRP_ATTR_LEN,
"u%" PRIu64 ":s%" PRIu64
" attributes too long, cannot send UPDATE",
subgrp->update_group->id, subgrp->id);