Avoid printing of error messages on Cease notifications.
This commit is contained in:
parent
00c0c18aea
commit
8573314326
1 changed files with 3 additions and 1 deletions
|
@ -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++)
|
||||||
|
|
Loading…
Reference in a new issue