diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-12-20 17:08:49 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-12-20 17:08:49 +0000 |
commit | 59addf3f2cac6e5d34e1b468839a462b36206b79 (patch) | |
tree | cfc790506e4edbf21b1a9170041db1ad4097401a /usr.sbin/bgpd/control.c | |
parent | 888aea4de980d9769f870057dbd8365d84417047 (diff) |
rework timers.
stop changing tienmr values directly, always use new
timer_(get/set/stop/running) functions. preparation for more to come :)
ok claudio
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index e8a515f2dfc..cbf55ae23f8 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.55 2007/03/28 12:33:32 henning Exp $ */ +/* $OpenBSD: control.c,v 1.56 2007/12/20 17:08:48 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -303,8 +303,8 @@ control_dispatch_msg(struct pollfd *pfd, u_int *ctl_cnt) break; case IMSG_CTL_NEIGHBOR_CLEAR: bgp_fsm(p, EVNT_STOP); - p->IdleHoldTimer = time(NULL) + - SESSION_CLEAR_DELAY; + timer_set(p, Timer_IdleHold, + SESSION_CLEAR_DELAY); control_result(c, CTL_RES_OK); break; case IMSG_CTL_NEIGHBOR_RREFRESH: |