From root@tpc.cmr.no  Thu Dec  8 07:43:33 1994
Received: from tpc.cmr.no (datalabpc.cmr.no [129.177.31.175]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id HAA09592 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 8 Dec 1994 07:39:59 -0800
Received: (from root@localhost) by tpc.cmr.no (8.6.9/8.6.9) id TAA00239; Thu, 8 Dec 1994 19:00:17 +0100
Message-Id: <199412081800.TAA00239@tpc.cmr.no>
Date: Thu, 8 Dec 1994 19:00:17 +0100
From: Charlie Root <root@tpc.cmr.no>
Reply-To: tl@cmr.no
To: FreeBSD-gnats-submit@freebsd.org
Cc: tl@cmr.no
Subject: ed driver won't switch to AUI
X-Send-Pr-Version: 3.2

>Number:         46
>Category:       kern
>Synopsis:       ed driver don't know the link0 flag (IFF_LINK0)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    core
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec  8 07:50:01 1994
>Closed-Date:    Sat Oct 28 15:47:27 PDT 1995
>Last-Modified:  Sat Oct 28 15:49:05 PDT 1995
>Originator:     Charlie &
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
>Environment:

	3com 3c503

>Description:

	There's a mismatch between old and new usage of ifconfig options
(altphys/link?). The result is that the ed driver will never switch to the
aui port.

>How-To-Repeat:

	

>Fix:
	
quick and dirty:

*** if_ed.c.orig	Wed Dec  7 11:50:32 1994
--- if_ed.c	Wed Dec  7 12:47:13 1994
***************
*** 56,64 ****
  #include <i386/isa/if_edreg.h>
  
  /* For backwards compatibility */
! #ifndef IFF_ALTPHYS
  #define IFF_ALTPHYS IFF_LINK0
- #endif
  
  /*
   * ed_softc: per line info and status
--- 56,63 ----
  #include <i386/isa/if_edreg.h>
  
  /* For backwards compatibility */
! #undef IFF_ALTPHYS
  #define IFF_ALTPHYS IFF_LINK0
  
  /*
   * ed_softc: per line info and status
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pst 
State-Changed-When: Sat Oct 28 15:47:27 PDT 1995 
State-Changed-Why:  
Updated documentation to match reality, the backwards compatibility code 
was for the driver, not for the user.  -link2 is used to disable the 
tranceiver, as that is the "altphys" flag. 
>Unformatted:


