diff options
author | Gerald Combs <gerald@wireshark.org> | 1999-08-21 21:06:11 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 1999-08-21 21:06:11 +0000 |
commit | 5c57f09423a891bee08c242a4c4e2d81a648a81e (patch) | |
tree | 698d084597264cbbba98cd76248836f669c4eb5c /packet-ip.c | |
parent | ad096839d3aecce01eebaafaddc5d33eac32995f (diff) |
Richard J�rgensen <ric@tbit.dk> pointed out that ICMP and IGMP checksums
were printed in the wrong byteorder.
svn path=/trunk/; revision=539
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ip.c b/packet-ip.c index 518ccaa617..fda851c1c1 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.38 1999/08/18 00:57:50 guy Exp $ + * $Id: packet-ip.c,v 1.39 1999/08/21 21:06:11 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -962,7 +962,7 @@ dissect_icmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree_add_text(icmp_tree, offset + 1, 1, "Code: %d %s", ih.icmp_code, code_str); proto_tree_add_text(icmp_tree, offset + 2, 2, "Checksum: 0x%04x", - ih.icmp_cksum); + cksum); /* Decode the second 4 bytes of the packet. */ switch (ih.icmp_type) { @@ -1121,7 +1121,7 @@ dissect_igmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree_add_text(igmp_tree, offset + 1, 1, "Unused: 0x%02x", ih.igmp_unused); proto_tree_add_text(igmp_tree, offset + 2, 2, "Checksum: 0x%04x", - ih.igmp_cksum); + cksum); proto_tree_add_text(igmp_tree, offset + 4, 4, "Group address: %s", ip_to_str((guint8 *) &ih.igmp_gaddr)); } |