From 8573314326a36cc8c9aa1755e7ad6c51617015c8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 25 Apr 2000 23:08:03 +0000 Subject: Avoid printing of error messages on Cease notifications. --- proto/bgp/packets.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/bgp') 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++) -- cgit v1.2.3