From 75e0f9551716b1d0788e5e653dc50d69919991fe Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Sat, 28 Aug 1999 03:56:03 +0000 Subject: Changed ip.flags from FT_UINT16 to FT_UINT8, and made it highlight only one byte in the hexdump. svn path=/trunk/; revision=600 --- packet-ip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packet-ip.c') diff --git a/packet-ip.c b/packet-ip.c index b2757c3447..a67ef6b4a9 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.41 1999/08/28 02:33:47 gram Exp $ + * $Id: packet-ip.c,v 1.42 1999/08/28 03:56:03 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -737,7 +737,7 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { iph.ip_id); flags = (iph.ip_off & (IP_DF|IP_MF)) >> 12; - tf = proto_tree_add_item_format(ip_tree, hf_ip_flags, offset + 6, 2, flags, + 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", @@ -1190,7 +1190,7 @@ proto_register_ip(void) { "Source or Destination Address", "ip.addr", FT_IPv4, NULL }}, { &hf_ip_flags, - { "Flags", "ip.flags", FT_UINT16, NULL }}, + { "Flags", "ip.flags", FT_UINT8, NULL }}, { &hf_ip_frag_offset, { "Fragment offset", "ip.frag_offset", FT_UINT16, NULL }}, -- cgit v1.2.3