diff options
author | brian <brian@FreeBSD.org> | 2000-05-31 15:35:29 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-05-31 15:35:29 +0000 |
commit | af615e019dddc2301527d65fd974c4b515800e52 (patch) | |
tree | aecc67a6f8f36fe8e31312d333a6be3c57931b54 /usr.sbin/ppp | |
parent | fdf622e339322fd26b2e5edc39b0d42d028ce0a0 (diff) | |
download | FreeBSD-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.c | 4 |
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); } } } |