diff options
author | andre <andre@FreeBSD.org> | 2005-09-19 22:27:07 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-09-19 22:27:07 +0000 |
commit | b2bf25e5cd5fc02fa46d9db548cf496f7ed135b8 (patch) | |
tree | 49f1fb3532ac2204a4634836a0f53993993ca4fa /sys/net/if_spppsubr.c | |
parent | 9a84c48b48266e34d6e7abafd7d94b16eb655b71 (diff) | |
download | FreeBSD-src-b2bf25e5cd5fc02fa46d9db548cf496f7ed135b8.zip FreeBSD-src-b2bf25e5cd5fc02fa46d9db548cf496f7ed135b8.tar.gz |
Use monotonic time_uptime instead of 'time_second' as timebase
for timeouts.
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 875cb1c..2db4884 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -793,7 +793,7 @@ sppp_input(struct ifnet *ifp, struct mbuf *m) * packets. This is used by some subsystems to detect * idle lines. */ - sp->pp_last_recv = time_second; + sp->pp_last_recv = time_uptime; } static void @@ -1066,7 +1066,7 @@ out: * network-layer traffic; control-layer traffic is handled * by sppp_cp_send(). */ - sp->pp_last_sent = time_second; + sp->pp_last_sent = time_uptime; return (0); } @@ -1104,7 +1104,7 @@ sppp_attach(struct ifnet *ifp) mtx_init(&sp->pp_cpq.ifq_mtx, "sppp_cpq", NULL, MTX_DEF); if(!mtx_initialized(&sp->pp_fastq.ifq_mtx)) mtx_init(&sp->pp_fastq.ifq_mtx, "sppp_fastq", NULL, MTX_DEF); - sp->pp_last_recv = sp->pp_last_sent = time_second; + sp->pp_last_recv = sp->pp_last_sent = time_uptime; sp->confflags = 0; #ifdef INET sp->confflags |= CONF_ENABLE_VJ; |