summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-12-23 18:56:18 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-12-23 18:56:18 +0000
commit2942b54c71a23e7b911959a4ab867ab8cf3fe9ff (patch)
tree46800df996e036a0ad40aa40c7352e4dd378711b /usr.sbin/bgpd/session.h
parent679a73616277bf0c242a2e756ff8f8d0add821a3 (diff)
provide timer_nextduein, which provides the number of seconds until the
next timer expires. use that in the session engine's mainloop, which simplifies it and removes the last bits of timer internals knowledge from anywhere outside timer.c.
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r--usr.sbin/bgpd/session.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h
index a1798514267..ca143f3706e 100644
--- a/usr.sbin/bgpd/session.h
+++ b/usr.sbin/bgpd/session.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.h,v 1.94 2007/12/23 18:26:13 henning Exp $ */
+/* $OpenBSD: session.h,v 1.95 2007/12/23 18:56:17 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -278,6 +278,7 @@ int carp_demote_set(char *, int);
/* timer.c */
time_t *timer_get(struct peer *, enum Timer);
int timer_due(struct peer *, enum Timer);
+time_t timer_nextduein(struct peer *);
int timer_running(struct peer *, enum Timer, time_t *);
void timer_set(struct peer *, enum Timer, u_int);
void timer_stop(struct peer *, enum Timer);