summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-05-31 15:35:29 +0000
committerbrian <brian@FreeBSD.org>2000-05-31 15:35:29 +0000
commitaf615e019dddc2301527d65fd974c4b515800e52 (patch)
treeaecc67a6f8f36fe8e31312d333a6be3c57931b54 /usr.sbin/ppp
parentfdf622e339322fd26b2e5edc39b0d42d028ce0a0 (diff)
downloadFreeBSD-src-af615e019dddc2301527d65fd974c4b515800e52.zip
FreeBSD-src-af615e019dddc2301527d65fd974c4b515800e52.tar.gz
Use mp_CheckAutoloadTimer() rather than mp_StopAutoloadTimer()
when opening or closing an auto link due to the autoload setting. Spotted by: David Hedley <david@inty.co.uk>
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/bundle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index e0ec63c..5c3011c 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -1967,12 +1967,12 @@ bundle_AutoAdjust(struct bundle *bundle, int percent, int what)
log_Printf(LogPHASE, "%d%% saturation -> Opening link ``%s''\n",
percent, choice->name);
datalink_Up(choice, 1, 1);
- mp_StopAutoloadTimer(&bundle->ncp.mp);
+ mp_CheckAutoloadTimer(&bundle->ncp.mp);
} else if (otherlinkup) { /* Only bring the second-last link down */
log_Printf(LogPHASE, "%d%% saturation -> Closing link ``%s''\n",
percent, choice->name);
datalink_Close(choice, CLOSE_STAYDOWN);
- mp_StopAutoloadTimer(&bundle->ncp.mp);
+ mp_CheckAutoloadTimer(&bundle->ncp.mp);
}
}
}
OpenPOWER on IntegriCloud