diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-03-09 19:26:41 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-03-09 19:26:41 +0000 |
commit | ab886ad0f6404d3f8745d96f98bae5f81dbd43c3 (patch) | |
tree | fa3f84a103eb47f2b69039ca701eb5eb025b76e0 /usr.sbin/ppp/bundle.h | |
parent | b3ae3fc83dbac2c2ab4999d7605e41ced33cee20 (diff) | |
download | src-test2-ab886ad0f6404d3f8745d96f98bae5f81dbd43c3.tar.gz src-test2-ab886ad0f6404d3f8745d96f98bae5f81dbd43c3.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/bundle.h')
-rw-r--r-- | usr.sbin/ppp/bundle.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.h b/usr.sbin/ppp/bundle.h index c1d705f55e61..549c5f0f8ccd 100644 --- a/usr.sbin/ppp/bundle.h +++ b/usr.sbin/ppp/bundle.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.h,v 1.1.2.11 1998/02/27 01:22:17 brian Exp $ + * $Id: bundle.h,v 1.1.2.12 1998/03/01 01:07:39 brian Exp $ */ #define PHASE_DEAD 0 /* Link is dead */ @@ -47,6 +47,12 @@ struct bundle { struct fsm_parent fsm; /* Our callback functions */ struct datalink *links; /* Our data links */ + + struct { + int idle_timeout; /* NCP Idle timeout value */ + } cfg; + + struct pppTimer IdleTimer; /* timeout after cfg.idle_timeout */ }; extern struct bundle *bundle_Create(const char *); @@ -66,6 +72,10 @@ extern int bundle_UpdateSet(struct bundle *, fd_set *, fd_set *, fd_set *, int *); extern int bundle_FillQueues(struct bundle *); extern int bundle_ShowLinks(struct cmdargs const *); +extern void bundle_StartIdleTimer(struct bundle *); +extern void bundle_SetIdleTimer(struct bundle *, int); +extern void bundle_StopIdleTimer(struct bundle *); +extern int bundle_RemainingIdleTime(struct bundle *); extern struct link *bundle2link(struct bundle *, const char *); extern struct physical *bundle2physical(struct bundle *, const char *); |