diff options
author | brian <brian@FreeBSD.org> | 1999-10-05 05:01:44 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-10-05 05:01:44 +0000 |
commit | 14fd42d30d91d93396a1967afb3969d0da8399f9 (patch) | |
tree | 5b0f36e5bf4bc36f022035f2d1d6c45bf7d22adf /usr.sbin/ppp | |
parent | 3e0b9be4c80502fc185e6353e1e37d381c0da455 (diff) | |
download | FreeBSD-src-14fd42d30d91d93396a1967afb3969d0da8399f9.zip FreeBSD-src-14fd42d30d91d93396a1967afb3969d0da8399f9.tar.gz |
Bring links down gently when their throughput isn't enough for
the ``set autoload'' value. Don't just ``down'' the link.
Don't get stuck in ``ready'' the first time we ``close'' a link.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 2 | ||||
-rw-r--r-- | usr.sbin/ppp/datalink.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 822f13c..9992ab5 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -1739,7 +1739,7 @@ bundle_AutoAdjust(struct bundle *bundle, int percent, int what) } else if (otherlinkup) { /* Only bring the second-last link down */ log_Printf(LogPHASE, "%d%% saturation -> Closing link ``%s''\n", percent, choice->name); - datalink_Down(choice, CLOSE_NORMAL); + datalink_Close(choice, CLOSE_STAYDOWN); mp_StopAutoloadTimer(&bundle->ncp.mp); } } diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index 693f69b..3113a13 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -952,7 +952,7 @@ datalink_Close(struct datalink *dl, int how) if (how == CLOSE_LCP) dl->stayonline = 1; } - break; + /* fall through */ default: datalink_ComeDown(dl, how); |