From b80b27f2cf39ce68da55fee1814f2c798c73f318 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 3 Apr 2000 01:46:23 +0000 Subject: [PATCH] byte order fixes; gwes@oat.com --- usr.sbin/tcpdump/print-atalk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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", -- 2.20.1