summaryrefslogtreecommitdiff
path: root/sys/net/if_sppp.h
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2005-03-23 00:26:07 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2005-03-23 00:26:07 +0000
commitadfcf818f38c3169da60fffe5722ccc56f7bc1d5 (patch)
treedddd6623108b941b1a0c27a74abdd18159d8dd1e /sys/net/if_sppp.h
parentb052eedd7f8ddbb303a633aa0e35746e2ede3095 (diff)
Merge some sppp improvements from NetBSD:
1. better timeout and keepalive handling 2. fix some memory leaks on error paths. 3. use arc4random instead of random 4. always send keepalives in cHDLC mode, from claudio@ Tested by Greg Mortensen (san) and jmc@ (pppoe), ok claudio@
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r--sys/net/if_sppp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h
index 24698cf32c8..b02f4c3d071 100644
--- a/sys/net/if_sppp.h
+++ b/sys/net/if_sppp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sppp.h,v 1.8 2005/01/08 20:35:59 canacar Exp $ */
+/* $OpenBSD: if_sppp.h,v 1.9 2005/03/23 00:26:06 canacar Exp $ */
/* $NetBSD: if_sppp.h,v 1.2.2.1 1999/04/04 06:57:39 explorer Exp $ */
/*
@@ -109,6 +109,8 @@ struct sppp {
u_short pp_loopcnt; /* loopback detection counter */
u_long pp_seq; /* local sequence number */
u_long pp_rseq; /* remote sequence number */
+ time_t pp_last_receive; /* peer's last "sign of life" */
+ time_t pp_last_activity; /* second of last payload data s/r */
enum ppp_phase pp_phase; /* phase we're currently in */
int state[IDX_COUNT]; /* state machine */
u_char confid[IDX_COUNT]; /* id of last configuration request */