diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-04-12 17:26:10 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-04-12 17:26:10 +0000 |
commit | acce912764e9985f31fb5c8fca801c6ca6567469 (patch) | |
tree | f07b904e7223c341dc9874dc9911c628bd7df2c9 /usr.sbin/bgpd/session.h | |
parent | 9fcb2f01c668956044de8fbda3588daa44668125 (diff) |
accept() pacing for bgpd based on similar work done on other daemons.
OK henning@ sthen@
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r-- | usr.sbin/bgpd/session.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index a8f52685625..5b300aa6148 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.112 2011/09/18 09:31:25 claudio Exp $ */ +/* $OpenBSD: session.h,v 1.113 2012/04/12 17:26:09 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -226,6 +226,7 @@ struct peer { }; extern struct peer *peers; +extern time_t pauseaccept; struct ctl_timer { enum Timer type; @@ -296,6 +297,7 @@ int imsg_compose_rde(int, pid_t, void *, u_int16_t); void session_stop(struct peer *, u_int8_t); /* timer.c */ +time_t getmonotime(void); struct peer_timer *timer_get(struct peer *, enum Timer); struct peer_timer *timer_nextisdue(struct peer *); time_t timer_nextduein(struct peer *); |