From 87757a15d3d1f7f68374a15ecad14bf43892bbf2 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 31 Aug 1998 09:02:03 +0000 Subject: [PATCH] Accept gateway value of NO --- release/sysinstall/tcpip.c | 4 ++-- usr.sbin/sysinstall/tcpip.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index a78bc853769..5a862f2856f 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.71 1997/09/17 13:33:14 jkh Exp $ + * $Id: tcpip.c,v 1.72 1997/09/17 16:18:22 pst Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -132,7 +132,7 @@ verifySettings(void) { if (!hostname[0]) feepout("Must specify a host name of some sort!"); - else if (gateway[0] && !verifyIP(gateway)) + else if (gateway[0] && strcmp(gateway, "NO") && !verifyIP(gateway)) feepout("Invalid gateway IP address specified"); else if (nameserver[0] && !verifyIP(nameserver)) feepout("Invalid name server IP address specified"); diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index a78bc853769..5a862f2856f 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.71 1997/09/17 13:33:14 jkh Exp $ + * $Id: tcpip.c,v 1.72 1997/09/17 16:18:22 pst Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -132,7 +132,7 @@ verifySettings(void) { if (!hostname[0]) feepout("Must specify a host name of some sort!"); - else if (gateway[0] && !verifyIP(gateway)) + else if (gateway[0] && strcmp(gateway, "NO") && !verifyIP(gateway)) feepout("Invalid gateway IP address specified"); else if (nameserver[0] && !verifyIP(nameserver)) feepout("Invalid name server IP address specified");