From 2124ba801a9c0f62e15a490bd8189155ab8ff1f4 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 25 Apr 2006 05:52:44 +0000 Subject: fix endian issue. netbsd pr31051 via ian mcwilliam --- sys/netatalk/aarp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index e1856fb3d45..f33046f29f9 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aarp.c,v 1.6 2006/03/04 22:40:16 brad Exp $ */ +/* $OpenBSD: aarp.c,v 1.7 2006/04/25 05:52:43 tedu Exp $ */ /* * Copyright (c) 1990,1991 Regents of The University of Michigan. @@ -176,8 +176,8 @@ at_ifawithnet( sat, ifa ) } 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; } } -- cgit v1.2.3