From 34772d5e9bc6bc604e06d6b4f64af4aa4771b30a Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 24 Aug 2005 06:06:51 +0000 Subject: [PATCH] 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. --- sys/netatalk/aarp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index 05334dc84144..befcdf1e8808 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -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 -__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;