NetBSD Problem Report #922
From gnats Wed Mar 29 13:18:50 1995
Received: from uran.informatik.uni-bonn.de (uran.informatik.uni-bonn.de [131.220.8.49]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id NAA00213 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 29 Mar 1995 13:18:43 -0800
Message-Id: <199503281041.MAA00403@beverly.rhein.de>
Date: Tue, 28 Mar 1995 12:41:43 +0200
From: Ignatios Souvatzis <is@beverly.rhein.de>
Reply-To: is@beverly.rhein.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: ARCnet should complain if link address == broadcast address
X-Send-Pr-Version: 3.2
>Number: 922
>Category: kern
>Synopsis: ARCnet should complain if link address == broadcast address
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Mar 29 13:20:02 +0000 1995
>Closed-Date: Fri Apr 14 17:06:20 +0000 1995
>Last-Modified:
>Originator: Ignatios Souvatzis
>Release: 1.0A
>Organization:
" "
>Environment:
System: NetBSD beverly 1.0A NetBSD 1.0A (BEVERLY) #41: Mon Mar 27 10:35:09 MET DST 1995 is@beverly:/usr/src/sys/arch/amiga/compile/BEVERLY amiga
>Description:
if_arcsubr.c accepts whatever the hardware driver reports as the link
address. It should complain if all zeros (the broadcast address) is
chosen.
>How-To-Repeat:
Set DIP switches for the link address to zero, then ifconfig down and
up again. The address will be accepted.
>Fix:
Apply the following diffs to /sys/net/if_arcsubr.c (this will work for
all drivers.
*** 1.7 1995/03/08 08:18:40
--- /sys/net/if_arcsubr.c 1995/03/08 08:22:41
***************
*** 44,49 ****
--- 44,50 ----
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
+ #include <sys/syslog.h>
#include <sys/errno.h>
#include <machine/cpu.h>
***************
*** 268,273 ****
--- 269,279 ----
ifp->if_addrlen = 1;
ifp->if_hdrlen = ARC_HDRLEN;
ifp->if_mtu = ARCMTU;
+ if (((struct arccom *)ifp)->ac_anaddr == 0) {
+ log(LOG_ERR,"%s%d: link address 0 reserved for broadcasts.\n\
+ 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) {
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: chopps
State-Changed-When: Fri Apr 14 10:06:20 PDT 1995
State-Changed-Why:
added diagnostic.
>Unformatted:
Ignatios Souvatzis
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.