Subject: kern/1164: source fix for arcnet
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 06/27/1995 15:35:20
>Number:         1164
>Category:       kern
>Synopsis:       source fix for arcnet
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 27 15:35:06 1995
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 26-Jun-95
>Environment:
	
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #143: Sun Jun 18 16:54:50 MET DST 1995 root@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
	src/sys/net/if_arcsubr.c breaks after the recent sys/net changes
>How-To-Repeat:
	make an amiga kernel with arcnet
>Fix:

*** if_arcsubr.c-orig	Thu Jun  8 12:06:02 1995
--- if_arcsubr.c	Mon Jun 26 18:38:18 1995
***************
*** 598,604 ****
  		log(LOG_ERR,"%s%d: link address 0 reserved for broadcasts.  Please change it and ifconfig %s%d down up\n",
  		   ifp->if_name,ifp->if_unit,ifp->if_name,ifp->if_unit); 
  	}
! 	for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next)
  		if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) &&
  		    sdl->sdl_family == AF_LINK) {
  			sdl->sdl_type = IFT_ARCNET;
--- 598,604 ----
  		log(LOG_ERR,"%s%d: link address 0 reserved for broadcasts.  Please change it and ifconfig %s%d down up\n",
  		   ifp->if_name,ifp->if_unit,ifp->if_name,ifp->if_unit); 
  	}
! 	for (ifa = ifp->if_addrlist.tqh_first; ifa != 0; ifa = ifa->ifa_list.tqe_next)
  		if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) &&
  		    sdl->sdl_family == AF_LINK) {
  			sdl->sdl_type = IFT_ARCNET;
>Audit-Trail:
>Unformatted: