summaryrefslogtreecommitdiffstats
path: root/proto/bgp
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-26 01:08:03 +0200
committerMartin Mares <mj@ucw.cz>2000-04-26 01:08:03 +0200
commit8573314326a36cc8c9aa1755e7ad6c51617015c8 (patch)
tree5932184e95968ea5070d34293e860c668f99203c /proto/bgp
parent00c0c18aea40dd39efc275e24ad9d5e12a873a32 (diff)
downloadbird-8573314326a36cc8c9aa1755e7ad6c51617015c8.tar
bird-8573314326a36cc8c9aa1755e7ad6c51617015c8.zip
Avoid printing of error messages on Cease notifications.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/packets.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index d17491b..0290f93 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -439,7 +439,9 @@ bgp_log_error(struct bgp_proto *p, char *msg, unsigned code, unsigned subcode, b
byte *t, argbuf[36];
unsigned i;
- /* FIXME: Printing of cease messages */
+ if (code == 6 && !subcode) /* Don't report Cease messages */
+ return;
+
bsprintf(namebuf, "%d.%d", code, subcode);
name = namebuf;
for (i=0; i < ARRAY_SIZE(bgp_msg_table); i++)