diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-04-22 09:43:12 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-04-22 09:43:12 +0000 |
commit | 9dca7c9c9f7e306c3ec74896def24c88a4c4539c (patch) | |
tree | 7b8f974c31f64f809f472c616dcf8571ada2ada0 /usr.sbin | |
parent | ac6937093eb2fcd77b09988e1a13dc0a57c97160 (diff) |
In state IDLE handle EVNT_STOP and stop the IdleHold timer. This way
a down of an idle connection will properly stop the session.
OK tb@ (as part of larger diff)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/session.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 751d9627db7..e2260e2830b 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.472 2024/04/22 09:36:04 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.473 2024/04/22 09:43:11 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -623,6 +623,9 @@ bgp_fsm(struct peer *peer, enum session_events event) } peer->passive = 0; break; + case EVNT_STOP: + timer_stop(&peer->timers, Timer_IdleHold); + break; default: /* ignore */ break; |