diff options
author | Guy Harris <guy@alum.mit.edu> | 1998-12-03 09:42:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1998-12-03 09:42:21 +0000 |
commit | 5274503f24eed25a020c3a004be4d7d9d61cd0e0 (patch) | |
tree | fa8ca797d7ab5300d78d225f193c447b9018f7e2 /packet-aarp.c | |
parent | 4220c8722ed7d929c96ae24c33779840dc653dd1 (diff) | |
download | wireshark-5274503f24eed25a020c3a004be4d7d9d61cd0e0.tar.gz wireshark-5274503f24eed25a020c3a004be4d7d9d61cd0e0.tar.bz2 wireshark-5274503f24eed25a020c3a004be4d7d9d61cd0e0.zip |
The Appletalk ARP opcode, like other AARP fields, is big-endian, not
little-endian.
svn path=/trunk/; revision=121
Diffstat (limited to 'packet-aarp.c')
-rw-r--r-- | packet-aarp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet-aarp.c b/packet-aarp.c index 1d3e4c3cb3..d835d20e15 100644 --- a/packet-aarp.c +++ b/packet-aarp.c @@ -91,7 +91,7 @@ dissect_aarp(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { ea.ptype = pntohs(&pd[offset + 2]); ea.halen = (guint8) pd[offset + 4]; ea.palen = (guint8) pd[offset + 5]; - ea.op = pletohs(&pd[offset + 6]); + ea.op = pntohs(&pd[offset + 6]); memcpy(&ea.hsaddr, &pd[offset + 8], 6); memcpy(&ea.psaddr, &pd[offset + 14], 4); memcpy(&ea.hdaddr, &pd[offset + 18], 6); |