From: deraadt Date: Mon, 3 Apr 2000 01:46:23 +0000 (+0000) Subject: byte order fixes; gwes@oat.com X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b80b27f2cf39ce68da55fee1814f2c798c73f318;p=openbsd byte order fixes; gwes@oat.com --- diff --git a/usr.sbin/tcpdump/print-atalk.c b/usr.sbin/tcpdump/print-atalk.c index 456ea9ca138..d3b2473b3ce 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: /home/cvs/src/usr.sbin/tcpdump/print-atalk.c,v 1.11 1999/09/16 20:58:45 brad Exp $ (LBL)"; + "@(#) $Header: /home/cvs/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",