summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-26 21:37:53 +0000
committerjkh <jkh@FreeBSD.org>1995-05-26 21:37:53 +0000
commit3548f9343a659c6a0f90901e7da72539db78cf0e (patch)
tree18ce0b30b10c14305b502b78f60e3fcd495b543b
parent7495e5c9eecf10670664e36901035b1a128dd93b (diff)
downloadFreeBSD-src-3548f9343a659c6a0f90901e7da72539db78cf0e.zip
FreeBSD-src-3548f9343a659c6a0f90901e7da72539db78cf0e.tar.gz
Don't add the default route in ppp - we'll only add it again later.
-rw-r--r--release/sysinstall/tcpip.c8
-rw-r--r--usr.sbin/sysinstall/tcpip.c8
2 files changed, 2 insertions, 14 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c
index e6f7f49..c3cb206 100644
--- a/release/sysinstall/tcpip.c
+++ b/release/sysinstall/tcpip.c
@@ -1,5 +1,5 @@
/*
- * $Id: tcpip.c,v 1.18 1995/05/26 20:31:01 jkh Exp $
+ * $Id: tcpip.c,v 1.19 1995/05/26 21:16:02 jkh Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@@ -503,12 +503,6 @@ tcpStartPPP(Device *devp)
else
strcpy(myaddr, "0");
fprintf(fp, " set ifaddr %s %s\n", myaddr, val);
- if (devp->private && ((DevInfo *)devp->private)->netmask[0])
- strcpy(netmask, ((DevInfo *)devp->private)->netmask);
- else
- strcpy(netmask, "255.255.255.240");
- if (strcmp(val, "0"))
- fprintf(fp, "add 0 %s %s\n", netmask, val);
fclose(fp);
if (!fork()) {
dup2(fd, 0);
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index e6f7f49..c3cb206 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -1,5 +1,5 @@
/*
- * $Id: tcpip.c,v 1.18 1995/05/26 20:31:01 jkh Exp $
+ * $Id: tcpip.c,v 1.19 1995/05/26 21:16:02 jkh Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@@ -503,12 +503,6 @@ tcpStartPPP(Device *devp)
else
strcpy(myaddr, "0");
fprintf(fp, " set ifaddr %s %s\n", myaddr, val);
- if (devp->private && ((DevInfo *)devp->private)->netmask[0])
- strcpy(netmask, ((DevInfo *)devp->private)->netmask);
- else
- strcpy(netmask, "255.255.255.240");
- if (strcmp(val, "0"))
- fprintf(fp, "add 0 %s %s\n", netmask, val);
fclose(fp);
if (!fork()) {
dup2(fd, 0);
OpenPOWER on IntegriCloud