PR/31051: Kousaku Nakahara: can't find the device from Macintosh through

AppleTalk(Netatalk) in the network including a seed router
Byte order problem, fixed as suggested.
This commit is contained in:
christos 2005-08-24 06:06:51 +00:00
parent bc0454688a
commit 34772d5e9b
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aarp.c,v 1.16 2005/05/29 21:52:30 christos Exp $ */
/* $NetBSD: aarp.c,v 1.17 2005/08/24 06:06:51 christos Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.16 2005/05/29 21:52:30 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.17 2005/08/24 06:06:51 christos Exp $");
#include "opt_mbuftrace.h"
@ -146,8 +146,8 @@ at_ifawithnet(sat, ifp)
nr = (struct netrange *) (sat2->sat_zero);
if ((nr->nr_phase == 2)
&& (nr->nr_firstnet <= sat->sat_addr.s_net)
&& (nr->nr_lastnet >= sat->sat_addr.s_net))
&& (ntohs(nr->nr_firstnet) <= ntohs(sat->sat_addr.s_net))
&& (ntohs(nr->nr_lastnet) >= ntohs(sat->sat_addr.s_net)))
break;
}
return ifa;