From 92028eff289924ff45268cda6afa50082e10722b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 3 Apr 2000 01:46:24 +0000 Subject: byte order fixes; gwes@oat.com --- usr.sbin/tcpdump/print-atalk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/tcpdump/print-atalk.c') diff --git a/usr.sbin/tcpdump/print-atalk.c b/usr.sbin/tcpdump/print-atalk.c index 9c208e992a5..72944fee354 100644 --- a/usr.sbin/tcpdump/print-atalk.c +++ b/usr.sbin/tcpdump/print-atalk.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.11 1999/09/16 20:58:45 brad Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.12 2000/04/03 01:46:23 deraadt Exp $ (LBL)"; #endif #include @@ -193,9 +193,9 @@ aarp_print(register const u_char *bp, u_int length) printf("aarp "); ap = (const struct aarp *)bp; - if (ap->htype == 1 && ap->ptype == ETHERTYPE_ATALK && - ap->halen == 6 && ap->palen == 4 ) - switch (ap->op) { + if (ntohs(ap->htype) == 1 && ntohs(ap->ptype) == ETHERTYPE_ATALK && + ap->halen == 6 && ap->palen == 4) + switch (ntohs(ap->op)) { case 1: /* request */ (void)printf("who-has %s tell %s", -- cgit v1.2.3