summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-04-25 05:52:44 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-04-25 05:52:44 +0000
commit2124ba801a9c0f62e15a490bd8189155ab8ff1f4 (patch)
tree63a1e45f5e318fada8493befc04e52061924fca2
parentfbdaad4027577812d857e2365a1dc83a879384e5 (diff)
fix endian issue. netbsd pr31051 via ian mcwilliam
-rw-r--r--sys/netatalk/aarp.c6
1 files 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;
}
}