From bp@butya.kz Thu Jun 10 22:39:18 1999
Return-Path: <bp@butya.kz>
Received: from lion.butya.kz (butya-gw.butya.kz [194.87.112.252])
	by hub.freebsd.org (Postfix) with ESMTP id 779D215332
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Jun 1999 22:39:02 -0700 (PDT)
	(envelope-from bp@butya.kz)
Received: from bp by lion.butya.kz with local (Exim 2.12 #1)
	id 10sK1k-000IdE-00
	for FreeBSD-gnats-submit@freebsd.org; Fri, 11 Jun 1999 12:38:52 +0700
Message-Id: <E10sK1k-000IdE-00@lion.butya.kz>
Date: Fri, 11 Jun 1999 12:38:52 +0700
From: bp@butya.kz
Reply-To: bp@butya.kz
To: FreeBSD-gnats-submit@freebsd.org
Subject: Bug in if_ex driver
X-Send-Pr-Version: 3.2

>Number:         12126
>Category:       kern
>Synopsis:       Missing ioctl handler for IPX address family in if_ex driver
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 10 22:40:01 PDT 1999
>Closed-Date:    Tue Aug 17 23:12:05 PDT 1999
>Last-Modified:  Tue Aug 17 23:12:47 PDT 1999
>Originator:     Boris Popov
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

	FreeBSD 3.2-STABLE, FreeBSD 4.0

>Description:

	In sys/i386/isa/if_ex.c file ex_ioctl() subroutine doesn't handle
ioctl request for AF_IPX address family, which makes it impossible to use
this card for IPX protocol.

>How-To-Repeat:

	ifconfig ex0 ipx 0x200

>Fix:
	
--- if_ex.c.org Tue Nov  3 17:56:21 1998
+++ if_ex.c	Thu Apr 22 09:48:30 1999
@@ -786,20 +786,10 @@
       arp_ifinit((struct arpcom *) ifp, ifa);
       break;
 #endif
-#ifdef IPX_NOTYET
+#ifdef IPX
     case AF_IPX:
-      {
-	register struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);
-
-	if (ipx_nullhost(*ina))
-	  ina->x_host = *(union ipx_host *) (sc->arpcom.ac_enaddr);
-	else {
-	  ifp->if_flags &= ~IFF_RUNNING;
-	  bcopy((caddr_t) ina->x_host.c_host, (caddr_t) sc->arpcom.ac_enaddr, sizeof(sc->arpcom.ac_enaddr));
-	}
-	ex_init(sc);
+	error = ether_ioctl(ifp, cmd, data);
 	break;
-      }
 #endif
 #ifdef NS
     case AF_NS:



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mdodd 
State-Changed-When: Tue Aug 17 23:12:05 PDT 1999 
State-Changed-Why:  
Correct fix applied to -CURRENT.  MFC in 2 weeks. 
>Unformatted:
