From nobody@FreeBSD.org  Wed Jun 20 03:27:34 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 26C6516A46D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Jun 2007 03:27:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 18E1D13C4B7
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Jun 2007 03:27:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5K3RXpL057429
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Jun 2007 03:27:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5K3RXpM057428;
	Wed, 20 Jun 2007 03:27:33 GMT
	(envelope-from nobody)
Message-Id: <200706200327.l5K3RXpM057428@www.freebsd.org>
Date: Wed, 20 Jun 2007 03:27:33 GMT
From: Nathan Whitehorn <nathanw@ginger.rh.uchicago.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: netatalk broken on big-endian systems
X-Send-Pr-Version: www-3.0

>Number:         113874
>Category:       kern
>Synopsis:       [netatalk] netatalk broken on big-endian systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 20 03:30:02 GMT 2007
>Closed-Date:    Tue Nov 06 17:36:27 UTC 2007
>Last-Modified:  Tue Nov 06 17:36:27 UTC 2007
>Originator:     Nathan Whitehorn
>Release:        7-CURRENT
>Organization:
University of Chicago
>Environment:
FreeBSD sunrise.rh 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Tue Jun 19 22:04:43 CDT 2007     root@mail.rh:/usr/obj/sparc64/usr/home/nathanw/src/sys/US3  sparc64

Same behavior on:
FreeBSD avila 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Tue Jun 19 21:11:23 CDT 2007     root@mail.rh:/usr/obj/arm/usr/home/nathanw/src/sys/AVILA  arm
>Description:
I'm not entirely sure whether this is a kernel or netatalk port bug, but
at least some of the problem is in the kernel AARP layer, and they have
a close relationship.

The ports part:
On big-endian systems, atalkd will not cleanly restart. If it has
previously run on an interface, it says something like this:

sunrise# /usr/local/etc/rc.d/netatalk restart
bge0: Address already in use
Can't configure multicast.
bge0: disabled.
bge0: disabled.
atalkd: zero interfaces, exiting.

This is with no remaining atalk address on the interface.

The kernel part:

The kernel seems incapable of correctly sending or receiving AARP
packets. Aecho doesn't work, nbplkup doesn't work, and tcpdump gives
a lot of these packets coming from the problem machine:

22:54:19.872587 aarp who-has 0.0.0 tell 0.0

Turning on NETATALKDEBUG, I get this at the console when these packets
are sent (sending induced by aecho 65280.125, which is a mac. 65280.175
is the machine itself):

aarp: sending request for 65280.175

The machine also doesn't reply to AARP packets addressed to it.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Nathan Whitehorn <nathanw@uchicago.edu>
To: bug-followup@FreeBSD.org,  nathanw@ginger.rh.uchicago.edu
Cc:  
Subject: Re: kern/113874: [netatalk] netatalk broken on big-endian systems
Date: Tue, 06 Nov 2007 08:50:03 -0600

 This bug turned out to be wrong -- it was only broken on big-endian ARM 
 systems, due to a bug in GCC 4, and has now been fixed. Accordingly, the 
 PR should be closed.
 -Nathan
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Nov 6 17:36:07 UTC 2007 
State-Changed-Why:  
Apparently fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113874 
>Unformatted:
