summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sppp.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-12-28 15:59:54 +0000
committerjoerg <joerg@FreeBSD.org>2001-12-28 15:59:54 +0000
commit2edde8a2bb8ffb654dbeff58d90d9271d7dfd1d1 (patch)
treeadcfa828252b220b438bb1f1705a47ada704b185 /sys/net/if_sppp.h
parentc2ddf60170498b16ad4d538a5eba2f12a032ed94 (diff)
downloadFreeBSD-src-2edde8a2bb8ffb654dbeff58d90d9271d7dfd1d1.zip
FreeBSD-src-2edde8a2bb8ffb654dbeff58d90d9271d7dfd1d1.tar.gz
Implement timestamps so i4b/driver/i4b_isppp.c can derive the idle
time from the PPP packets sent. This effectively merges rev 1.2 of the old i4b_ispppsubr.c, with the exception that i eventually ended up in debugging and fixing it so the idle time is now really detected. ;-) (The version in i4b simply doesn't work right since it still accounts for incoming LCP echo packets which it is supposed to ignore for idle time considerations...) Obtained from: i4b MFC after: 1 month
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r--sys/net/if_sppp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h
index d565764..7878d5c 100644
--- a/sys/net/if_sppp.h
+++ b/sys/net/if_sppp.h
@@ -145,6 +145,8 @@ struct sppp {
int rst_counter[IDX_COUNT]; /* restart counter */
int fail_counter[IDX_COUNT]; /* negotiation failure counter */
int enable_vj; /* VJ header compression enabled */
+ time_t pp_last_recv; /* time last packet has been received */
+ time_t pp_last_sent; /* time last packet has been sent */
struct callout_handle ch[IDX_COUNT]; /* per-proto and if callouts */
struct callout_handle pap_my_to_ch; /* PAP needs one more... */
struct slcp lcp; /* LCP params */
OpenPOWER on IntegriCloud