diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-04-03 01:46:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-04-03 01:46:24 +0000 |
commit | 92028eff289924ff45268cda6afa50082e10722b (patch) | |
tree | 44c012f3cad72360e1023d15b1502bfd311db808 /usr.sbin/tcpdump/print-atalk.c | |
parent | 849edfecc3dc12c2f400a590b6c8c50b07c08caa (diff) |
byte order fixes; gwes@oat.com
Diffstat (limited to 'usr.sbin/tcpdump/print-atalk.c')
-rw-r--r-- | usr.sbin/tcpdump/print-atalk.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/param.h> @@ -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", |