aboutsummaryrefslogtreecommitdiffstats
path: root/packet-aarp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1998-12-03 09:42:21 +0000
committerGuy Harris <guy@alum.mit.edu>1998-12-03 09:42:21 +0000
commit5274503f24eed25a020c3a004be4d7d9d61cd0e0 (patch)
treefa8ca797d7ab5300d78d225f193c447b9018f7e2 /packet-aarp.c
parent4220c8722ed7d929c96ae24c33779840dc653dd1 (diff)
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.c2
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);