From: Paul Mackerras Date: Mon, 5 Dec 1994 00:32:38 +0000 (+0000) Subject: assume ints are 32 bits; added idle time structure X-Git-Tag: RELEASE_2_3_6~808 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=842f9966b25dc0003af5cc2bfc9b2a8067254890;hp=1db7d0c85cfe5d28162f7f8f1e6dc9f76812335d assume ints are 32 bits; added idle time structure --- diff --git a/include/net/ppp_defs.h b/include/net/ppp_defs.h index c6205dc..4f0e711 100644 --- a/include/net/ppp_defs.h +++ b/include/net/ppp_defs.h @@ -1,4 +1,4 @@ -/* $Id: ppp_defs.h,v 1.4 1994/10/23 11:46:45 paulus Exp $ */ +/* $Id: ppp_defs.h,v 1.5 1994/12/05 00:32:37 paulus Exp $ */ /* * ppp_defs.h - PPP definitions. @@ -78,7 +78,7 @@ #ifdef UINT32_T typedef UINT32_T u_int32_t; #else -typedef unsigned long u_int32_t; +typedef unsigned int u_int32_t; #endif #endif @@ -140,6 +140,15 @@ struct ppp_comp_stats { struct compstat d; /* packet decompression statistics */ }; +/* + * The following structure records the time in seconds since + * the last NP packet was sent or received. + */ +struct ppp_idle { + int xmit_idle; /* time since last NP packet sent */ + int recv_idle; /* time since last NP packet received */ +}; + #ifndef __P #ifdef __STDC__ #define __P(x) x