Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Use "mono_time" instead of "time" for timeout calcul...
details: https://anonhg.NetBSD.org/src/rev/523f868fa2d9
branches: trunk
changeset: 534017:523f868fa2d9
user: martin <martin%NetBSD.org@localhost>
date: Sat Jul 13 11:08:03 2002 +0000
description:
Use "mono_time" instead of "time" for timeout calculations.
diffstat:
sys/net/if_spppsubr.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 1f52b0c331d6 -r 523f868fa2d9 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c Sat Jul 13 08:28:40 2002 +0000
+++ b/sys/net/if_spppsubr.c Sat Jul 13 11:08:03 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.50 2002/07/11 21:37:51 yamt Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.51 2002/07/13 11:08:03 martin Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.50 2002/07/11 21:37:51 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.51 2002/07/13 11:08:03 martin Exp $");
#include "opt_inet.h"
#include "opt_ipx.h"
@@ -597,7 +597,7 @@
if (sp->state[IDX_IPCP] == STATE_OPENED) {
schednetisr (NETISR_IP);
inq = &ipintrq;
- sp->pp_last_activity = time.tv_sec;
+ sp->pp_last_activity = mono_time.tv_sec;
}
break;
#endif
@@ -612,7 +612,7 @@
if (sp->state[IDX_IPV6CP] == STATE_OPENED) {
schednetisr (NETISR_IPV6);
inq = &ip6intrq;
- sp->pp_last_activity = time.tv_sec;
+ sp->pp_last_activity = mono_time.tv_sec;
}
break;
#endif
@@ -680,7 +680,7 @@
s = splnet();
- sp->pp_last_activity = time.tv_sec;
+ sp->pp_last_activity = mono_time.tv_sec;
if ((ifp->if_flags & IFF_UP) == 0 ||
(ifp->if_flags & (IFF_RUNNING | IFF_AUTO)) == 0) {
@@ -2035,7 +2035,7 @@
STDDCL;
/* Initialize activity timestamp: opening a connection is an activity */
- sp->pp_last_activity = time.tv_sec;
+ sp->pp_last_activity = mono_time.tv_sec;
/*
* If this interface is passive or dial-on-demand, and we are
@@ -4606,7 +4606,7 @@
time_t now;
s = splnet();
- now = time.tv_sec;
+ now = mono_time.tv_sec;
for (sp=spppq; sp; sp=sp->pp_next) {
struct ifnet *ifp = &sp->pp_if;
Home |
Main Index |
Thread Index |
Old Index