aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-14 08:18:24 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-14 08:18:24 +0000
commitb1f5853f414131cae6c3eaabfde3d9f843265c09 (patch)
tree9f16dd7540ef7eb2432f07bf9ea5561c1c56cd8a /packet-ip.c
parentf4ac555e907bffcc8ae769cc9d12feaedd8a0e5d (diff)
Daniel Ryde's patch to show the IP flags as 4 bits, rather than showing
the full octet containing the flags and the upper 4 bits of the fragment offset. svn path=/trunk/; revision=678
Diffstat (limited to 'packet-ip.c')
-rw-r--r--packet-ip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-ip.c b/packet-ip.c
index 0a2de63e71..b1914f9c9c 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.46 1999/08/31 23:21:29 guy Exp $
+ * $Id: packet-ip.c,v 1.47 1999/09/14 08:18:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -781,11 +781,11 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
tf = proto_tree_add_item_format(ip_tree, hf_ip_flags, offset + 6, 1, flags,
"Flags: 0x%x", flags);
field_tree = proto_item_add_subtree(tf, ETT_IP_OFF);
- proto_tree_add_text(field_tree, offset + 6, 2, "%s",
- decode_boolean_bitfield(iph.ip_off >> 8, IP_DF >> 8, 8, "don't fragment",
+ proto_tree_add_text(field_tree, offset + 6, 1, "%s",
+ decode_boolean_bitfield(iph.ip_off >> 12, IP_DF >> 12, 4, "don't fragment",
"may fragment"));
- proto_tree_add_text(field_tree, offset + 6, 2, "%s",
- decode_boolean_bitfield(iph.ip_off >> 8, IP_MF >> 8, 8, "more fragments",
+ proto_tree_add_text(field_tree, offset + 6, 1, "%s",
+ decode_boolean_bitfield(iph.ip_off >> 12, IP_MF >> 12, 4, "more fragments",
"last fragment"));
proto_tree_add_item(ip_tree, hf_ip_frag_offset, offset + 6, 2,