diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-06 19:19:22 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-06 19:19:22 +0000 |
commit | 1ed474925992b650da2233b2dd608768530dee9b (patch) | |
tree | 08e25973e98cc4d81f64195631b5b22d034ae2c9 /usr.sbin/bgpd/session.h | |
parent | a167874ff2aade9b04ef15616f95164022ac3cd0 (diff) |
properly punish oscillating neighbors.
previously we were to forgiving so the punishment didn't kick in as
intended
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r-- | usr.sbin/bgpd/session.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index 4e0200eab55..12721f951d3 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.13 2004/01/06 18:01:27 henning Exp $ */ +/* $OpenBSD: session.h,v 1.14 2004/01/06 19:19:21 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -23,9 +23,10 @@ #define INTERVAL_CONNECTRETRY 120 #define INTERVAL_HOLD_INITIAL 240 #define INTERVAL_HOLD 90 -#define INTERVAL_IDLE_HOLD_INITIAL 90 -#define MSGSIZE_HEADER 19 -#define MSGSIZE_HEADER_MARKER 16 +#define INTERVAL_IDLE_HOLD_INITIAL 90 +#define MAX_IDLE_HOLD 3600 +#define MSGSIZE_HEADER 19 +#define MSGSIZE_HEADER_MARKER 16 #define MSGSIZE_NOTIFICATION_MIN 21 /* 19 hdr + 1 code + 1 sub */ #define MSGSIZE_OPEN_MIN 29 #define MSGSIZE_UPDATE_MIN 23 @@ -139,6 +140,7 @@ struct peer { time_t KeepaliveTimer; time_t HoldTimer; time_t IdleHoldTimer; + time_t IdleHoldResetTimer; u_int IdleHoldTime; int sock; int events; |