NetBSD Problem Report #12356

Received: (qmail 21199 invoked from network); 8 Mar 2001 11:57:46 -0000
Message-Id: <20010308125744.A6808@pasta.cs.uit.no>
Date: Thu, 8 Mar 2001 12:57:44 +0100
From: feico@pasta.cs.uit.no
To: gnats-bugs@gnats.netbsd.org
Subject: an driver alignment problem on netbsd/alpha
X-Send-Pr-Version: 3.95

>Number:         12356
>Category:       kern
>Synopsis:       an driver alignment problem on netbsd/alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 11:58:00 +0000 2001
>Closed-Date:    Thu Mar 08 16:33:56 +0000 2001
>Last-Modified:  Thu Mar 08 16:33:56 +0000 2001
>Originator:     Feico Dillema
>Release:        NetBSD-1.5 and NetBSD-current Mar 8 2001
>Organization:
University of Tromsoe
>Environment:
System: NetBSD 1.5.x Architecture: alpha Machine: DEC Multia
>Description:
	an driver does not work on alpha due to alignment problem
>How-To-Repeat:
	insert Cisco Aironet card in your alpha box, configure the
interface. try to ping the machine and the machine will panic. pinging
from the machine will not put anything on the wire.
>Fix:
	the fix is simple and has been `stolen' from the wi driver
(sys/dev/pcmcia/if_wi.c). The patch below is for the NetBSD-1.5.1
branch, but it should also apply for NetBSD­current but at line 403 of
an.c.

--- an.c	Thu Mar  8 12:52:09 2001
+++ an.c.alpha	Thu Mar  8 12:50:24 2001
@@ -387,6 +387,9 @@

 	m->m_pkthdr.rcvif = ifp;

+        /* Align the data after the ethernet header */
+        m->m_data = (caddr_t) ALIGN(m->m_data + sizeof(struct ether_header))
+            - sizeof(struct ether_header);  
 	eh = mtod(m, struct ether_header *);

 #ifdef ANCACHE
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Thu Mar 8 08:33:48 PST 2001 
State-Changed-Why:  
Applied, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.