assume ints are 32 bits; added idle time structure
authorPaul Mackerras <paulus@samba.org>
Mon, 5 Dec 1994 00:32:38 +0000 (00:32 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 5 Dec 1994 00:32:38 +0000 (00:32 +0000)
include/net/ppp_defs.h

index c6205dcf197a30b1f7cba0d563585f68ba859d44..4f0e711561cd9337ab829741e54723c64d87780f 100644 (file)
@@ -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