summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-11-05 21:59:48 +0000
committerbrian <brian@FreeBSD.org>1998-11-05 21:59:48 +0000
commita254d82dc7a55c30838c21791570619fd74a5e56 (patch)
tree54f7a75b0fc4d742a2172f905f848715089e6c8c /usr.sbin/ppp/command.c
parentb975f40fac11caca651c2bb4f4e08640381fcf8f (diff)
downloadFreeBSD-src-a254d82dc7a55c30838c21791570619fd74a5e56.zip
FreeBSD-src-a254d82dc7a55c30838c21791570619fd74a5e56.tar.gz
Don't delete the primary interface address when
``iface clean'' is used in auto mode while there are no active links.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 0ef359b..1894bc6 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: command.c,v 1.174 1998/10/27 22:53:22 brian Exp $
+ * $Id: command.c,v 1.175 1998/10/31 17:38:46 brian Exp $
*
*/
#include <sys/types.h>
@@ -134,7 +134,7 @@
#define NEG_DNS 50
const char Version[] = "2.0";
-const char VersionDate[] = "$Date: 1998/10/27 22:53:22 $";
+const char VersionDate[] = "$Date: 1998/10/31 17:38:46 $";
static int ShowCommand(struct cmdargs const *);
static int TerminalCommand(struct cmdargs const *);
@@ -2417,7 +2417,8 @@ IfaceClearCommand(struct cmdargs const *arg)
if (arg->argc != arg->argn)
return -1;
- how = arg->bundle->ncp.ipcp.fsm.state == ST_OPENED ?
+ how = arg->bundle->ncp.ipcp.fsm.state == ST_OPENED ||
+ arg->bundle->phys_type.all & PHYS_AUTO ?
IFACE_CLEAR_ALIASES : IFACE_CLEAR_ALL;
iface_Clear(arg->bundle->iface, how);
OpenPOWER on IntegriCloud