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.
This commit is contained in:
Brian Somers 1999-10-05 05:01:44 +00:00
parent 2a9394b156
commit d2f5232de3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51945
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);