summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-08-17 17:22:46 +0000
committerbrian <brian@FreeBSD.org>1999-08-17 17:22:46 +0000
commit69ab84d0b3235628f1a0921b3208fcee2f13c1ea (patch)
treecc2c2d7ee69dc3570f75879e36d93e0a21fce566 /usr.sbin/ppp/bundle.h
parentb5a42c5efbe05b3f948f1810d95c2ff049d841fd (diff)
downloadFreeBSD-src-69ab84d0b3235628f1a0921b3208fcee2f13c1ea.zip
FreeBSD-src-69ab84d0b3235628f1a0921b3208fcee2f13c1ea.tar.gz
Implement a minimum idle time value as an optional second argument
to ``set timeout''. This is useful for situations where your minimum call charge is (say) 5 minutes (like mine is)
Diffstat (limited to 'usr.sbin/ppp/bundle.h')
-rw-r--r--usr.sbin/ppp/bundle.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/ppp/bundle.h b/usr.sbin/ppp/bundle.h
index fbe3f0e..1ffce90 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.23 1999/06/02 00:46:52 brian Exp $
+ * $Id: bundle.h,v 1.24 1999/08/05 10:32:08 brian Exp $
*/
#define PHASE_DEAD 0 /* Link is dead */
@@ -89,8 +89,13 @@ struct bundle {
struct fsm_parent fsm; /* Our callback functions */
struct datalink *links; /* Our data links */
+ time_t upat; /* When the link came up */
+
struct {
- int idle_timeout; /* NCP Idle timeout value */
+ struct {
+ int timeout; /* NCP Idle timeout value */
+ int min_timeout; /* Don't idle out before this */
+ } idle;
struct {
char name[AUTHLEN]; /* PAP/CHAP system name */
char key[AUTHLEN]; /* PAP/CHAP key */
@@ -155,7 +160,7 @@ extern int bundle_FillQueues(struct bundle *);
extern int bundle_ShowLinks(struct cmdargs const *);
extern int bundle_ShowStatus(struct cmdargs const *);
extern void bundle_StartIdleTimer(struct bundle *);
-extern void bundle_SetIdleTimer(struct bundle *, int);
+extern void bundle_SetIdleTimer(struct bundle *, int, int);
extern void bundle_StopIdleTimer(struct bundle *);
extern int bundle_IsDead(struct bundle *);
extern struct datalink *bundle2datalink(struct bundle *, const char *);
OpenPOWER on IntegriCloud