From 842f9966b25dc0003af5cc2bfc9b2a8067254890 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 5 Dec 1994 00:32:38 +0000 Subject: [PATCH] assume ints are 32 bits; added idle time structure --- include/net/ppp_defs.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 -- 2.39.2