0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00

Avoid printing of error messages on Cease notifications.

This commit is contained in:
Martin Mares 2000-04-25 23:08:03 +00:00
parent 00c0c18aea
commit 8573314326

View File

@ -439,7 +439,9 @@ bgp_log_error(struct bgp_proto *p, char *msg, unsigned code, unsigned subcode, b
byte *t, argbuf[36]; byte *t, argbuf[36];
unsigned i; unsigned i;
/* FIXME: Printing of cease messages */ if (code == 6 && !subcode) /* Don't report Cease messages */
return;
bsprintf(namebuf, "%d.%d", code, subcode); bsprintf(namebuf, "%d.%d", code, subcode);
name = namebuf; name = namebuf;
for (i=0; i < ARRAY_SIZE(bgp_msg_table); i++) for (i=0; i < ARRAY_SIZE(bgp_msg_table); i++)