diff options
Diffstat (limited to 'usr.sbin/ppp/mp.c')
-rw-r--r-- | usr.sbin/ppp/mp.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index 201ce6692bd6..e9d38baafeac 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp.c,v 1.16 1998/09/04 18:25:59 brian Exp $ + * $Id: mp.c,v 1.15 1998/08/26 17:39:37 brian Exp $ */ #include <sys/types.h> @@ -774,20 +774,9 @@ mp_SetEnddisc(struct cmdargs const *arg) struct mp *mp = &arg->bundle->ncp.mp; struct in_addr addr; - switch (bundle_Phase(arg->bundle)) { - case PHASE_DEAD: - break; - case PHASE_ESTABLISH: - /* Make sure none of our links are DATALINK_LCP or greater */ - if (bundle_HighestState(arg->bundle) >= DATALINK_LCP) { - log_Printf(LogWARN, "enddisc: Only changable before" - " LCP negotiations\n"); - return 1; - } - break; - default: - log_Printf(LogWARN, "enddisc: Only changable at phase DEAD/ESTABLISH\n"); - return 1; + if (bundle_Phase(arg->bundle) != PHASE_DEAD) { + log_Printf(LogWARN, "set enddisc: Only available at phase DEAD\n"); + return 1; } if (arg->argc == arg->argn) { |