Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 1999 12:38:52 +0700
From:      bp@butya.kz
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/12126: Bug in if_ex driver
Message-ID:  <E10sK1k-000IdE-00@lion.butya.kz>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 10 22:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E10sK1k-000IdE-00>