From e445012341b8755916cf61e3f14dc3e7bfe65875 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 13 Nov 1997 12:09:57 +0000 Subject: [PATCH] Don't delete interface routes when we do an LcpDown. They'll get deleted in Cleanup(). --- usr.sbin/ppp/main.c | 9 +++++---- usr.sbin/ppp/os.c | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 975171ef2869..69532308dff8 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.92 1997/11/09 22:07:28 brian Exp $ + * $Id: main.c,v 1.93 1997/11/11 22:58:11 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -417,13 +417,14 @@ main(int argc, char **argv) if (GetLabel()) { if (SelectSystem(GetLabel(), CONFFILE) < 0) { - LogPrintf(LogWARN, "Destination system not found in conf file.\n"); + LogPrintf(LogWARN, "Destination system %s not found in conf file.\n", + GetLabel()); Cleanup(EX_START); } if (mode & MODE_OUTGOING_DAEMON && DefHisAddress.ipaddr.s_addr == INADDR_ANY) { - LogPrintf(LogWARN, "Must specify dstaddr with" - " auto, background or ddial mode.\n"); + LogPrintf(LogWARN, "You must \"set ifaddr\" in label %s for" + " auto, background or ddial mode.\n", GetLabel()); Cleanup(EX_START); } } diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c index dfe183145450..ce8bb29e62a1 100644 --- a/usr.sbin/ppp/os.c +++ b/usr.sbin/ppp/os.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: os.c,v 1.31 1997/11/09 06:22:44 brian Exp $ + * $Id: os.c,v 1.32 1997/11/11 22:58:12 brian Exp $ * */ #include @@ -248,7 +248,6 @@ OsLinkdown() FsmDown(&IpcpFsm); /* IPCP must come down */ FsmDown(&CcpFsm); /* CCP must come down */ - DeleteIfRoutes(0); linkup = 0; if (SelectSystem(s, LINKDOWNFILE) < 0) { if (GetLabel()) {