diff options
author | Andre Oppermann <andre@FreeBSD.org> | 2005-09-19 22:27:07 +0000 |
---|---|---|
committer | Andre Oppermann <andre@FreeBSD.org> | 2005-09-19 22:27:07 +0000 |
commit | 7ac9ac0b218af2c0094b0cd9c14db36ff9c70724 (patch) | |
tree | 49f1fb3532ac2204a4634836a0f53993993ca4fa /sys/net/if_spppsubr.c | |
parent | e452573df72d71b4ee37e92220ed17154cf09037 (diff) |
Use monotonic time_uptime instead of 'time_second' as timebase
for timeouts.
Notes
Notes:
svn path=/head/; revision=150349
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 875cb1cd9836..2db48848c4e8 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; |