From rivers@dignus.com Thu Jun 17 06:22:18 1999
Return-Path: <rivers@dignus.com>
Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31])
	by hub.freebsd.org (Postfix) with ESMTP id D1C6C15093
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Jun 1999 06:22:13 -0700 (PDT)
	(envelope-from rivers@dignus.com)
Received: from dignus.com (ponds.vnet.net [166.82.177.48])
	by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id JAA26767
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Jun 1999 09:22:41 -0400 (EDT)
Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3])
	by dignus.com (8.9.2/8.8.5) with ESMTP id JAA04196
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Jun 1999 09:22:10 -0400 (EDT)
Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id JAA15258; Thu, 17 Jun 1999 09:22:10 -0400 (EDT)
Message-Id: <199906171322.JAA15258@lakes.dignus.com>
Date: Thu, 17 Jun 1999 09:22:10 -0400 (EDT)
From: Thomas David Rivers <rivers@dignus.com>
Reply-To: rivers@dignus.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: SL/IP install doesn't work due to ifconfig sl0 problem
X-Send-Pr-Version: 3.2

>Number:         12259
>Category:       bin
>Synopsis:       SL/IP install doesn't work due to ifconfig sl0 problem
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 17 06:30:01 PDT 1999
>Closed-Date:    Tue Sep 14 02:19:32 PDT 1999
>Last-Modified:  Tue Sep 14 02:23:06 PDT 1999
>Originator:     Thomas David Rivers
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Dignus, LLC
>Environment:

	3.1R and 3.2R  installation via direct SL/IP line.

>Description:

	There is a bug in the ifconfig of the slip interface.
	If you slattach a slip unit to a tty _before_ doing the
	`ifconfig slX',  the ifconfig will fail with EEXISTS.
	(see PR kern/12251 for more information.)

	Unfortunately, that's the order sysinstall takes for
	the SL/IP connection.

	Doing the ifconfig followed by the slattach should work.

>How-To-Repeat:

	Try to do a SL/IP install.

>Fix:

	The following is the context diff to 3.2-R's 
	/usr/src/release/sysinstall/network.c to move the 
	slattach after the ifconfig.   That should be an
	adequate "work-around" until some solution for the
	kernel bug is found.

*** network.c.ori	Sat Mar 13 05:41:29 1999
--- network.c	Thu Jun 17 08:23:12 1999
***************
*** 82,88 ****
  	networkInitialized = TRUE;
  	return TRUE;
      }
!     else if (!strncmp("sl", dev->name, 2)) {	/* SLIP? */
  	char *val;
  	char attach[256];
  
--- 82,105 ----
  	networkInitialized = TRUE;
  	return TRUE;
      }
! 
! 
!     snprintf(ifconfig, 255, "%s%s", VAR_IFCONFIG, dev->name);
!     cp = variable_get(ifconfig);
!     if (!cp) {
! 	msgConfirm("The %s device is not configured.  You will need to do so\n"
! 		   "in the Networking configuration menu before proceeding.", dev->name);
! 	return FALSE;
!     }
!     msgNotify("ifconfig %s %s", dev->name, cp);
!     i = vsystem("ifconfig %s %s", dev->name, cp);
!     if (i) {
! 	msgConfirm("Unable to configure the %s interface!\n"
! 		   "This installation method cannot be used.", dev->name);
! 	return FALSE;
!     }
! 
!     if (!strncmp("sl", dev->name, 2)) {	/* SLIP? */
  	char *val;
  	char attach[256];
  
***************
*** 114,134 ****
  		       "the command is correct and try this operation again.");
  	    return FALSE;
  	}
-     }
- 
-     snprintf(ifconfig, 255, "%s%s", VAR_IFCONFIG, dev->name);
-     cp = variable_get(ifconfig);
-     if (!cp) {
- 	msgConfirm("The %s device is not configured.  You will need to do so\n"
- 		   "in the Networking configuration menu before proceeding.", dev->name);
- 	return FALSE;
-     }
-     msgNotify("ifconfig %s %s", dev->name, cp);
-     i = vsystem("ifconfig %s %s", dev->name, cp);
-     if (i) {
- 	msgConfirm("Unable to configure the %s interface!\n"
- 		   "This installation method cannot be used.", dev->name);
- 	return FALSE;
      }
  
      rp = variable_get(VAR_GATEWAY);
--- 131,136 ----

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Tue Sep 14 02:19:32 PDT 1999 
State-Changed-Why:  
Base bug (PR kern/12251) has been fixed in both -current and -stable. 
>Unformatted:
