X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=include%2Fnet%2Fppp_defs.h;h=77f01bb1b1ba99b2bea5deecc826d85b4d362a12;hp=c6205dcf197a30b1f7cba0d563585f68ba859d44;hb=4d5401a1de510cdbb89cf10bc5956774c62683be;hpb=a25751c11ca919d295f180a964912c6423ba3e33 diff --git a/include/net/ppp_defs.h b/include/net/ppp_defs.h index c6205dc..77f01bb 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.7 1995/08/10 06:49:35 paulus Exp $ */ /* * ppp_defs.h - PPP definitions. @@ -74,11 +74,11 @@ /* * A 32-bit unsigned integral type. */ -#ifndef __BIT_TYPES_DEFINED__ +#if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) #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 { + time_t xmit_idle; /* time since last NP packet sent */ + time_t recv_idle; /* time since last NP packet received */ +}; + #ifndef __P #ifdef __STDC__ #define __P(x) x