summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2013-01-10 09:56:58 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2013-01-10 09:56:58 +0000
commitca07653135e1a1e0a23bb63ba44455891ccf5e6e (patch)
tree136e8d7cea70ba90934a4016510f60fc2af8a5d2 /usr.sbin/bgpd
parent1d62fcc250e7a81b0d659c6e135f34e30f9550ca (diff)
Don't log "unknown subcode" for subcode 0 when the hold timer expires,
this is a normal condition. ok phessler@ florian@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c
index 489aed36841..0273113e778 100644
--- a/usr.sbin/bgpd/log.c
+++ b/usr.sbin/bgpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.56 2012/06/10 11:16:08 claudio Exp $ */
+/* $OpenBSD: log.c,v 1.57 2013/01/10 09:56:57 sthen Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -291,7 +291,8 @@ log_notification(const struct peer *peer, u_int8_t errcode, u_int8_t subcode,
suberrname = suberr_cease_names[subcode];
break;
case ERR_HOLDTIMEREXPIRED:
- uk = 1;
+ if (subcode != 0)
+ uk = 1;
break;
case ERR_FSM:
if (subcode >= sizeof(suberr_fsm_names)/sizeof(char *))