diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-11 04:02:51 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-11 04:02:51 +0000 |
commit | 5ee0e42e03461462196d5427bd88310a8332f7d9 (patch) | |
tree | 61ab068424f21dbf569e083276a69914b3af76bd /packet-igmp.c | |
parent | f69b36a431d6204f011d7eb94902d345a27a1719 (diff) |
Just add the "hf_type" field in a traceroute message with
"proto_tree_add_uint_format()", rather than adding it as a hidden field
and then adding a text entry.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3682 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-igmp.c')
-rw-r--r-- | packet-igmp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packet-igmp.c b/packet-igmp.c index 8c1eaf30e7..8e60d21263 100644 --- a/packet-igmp.c +++ b/packet-igmp.c @@ -1,7 +1,7 @@ /* packet-igmp.c 2001 Ronnie Sahlberg <rsahlber@bigpond.net.au> * Routines for IGMP packet disassembly * - * $Id: packet-igmp.c,v 1.9 2001/07/10 20:55:54 guy Exp $ + * $Id: packet-igmp.c,v 1.10 2001/07/11 04:02:51 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -176,7 +176,9 @@ static int ett_mtrace_block = -1; #define IGMP_V2_MEMBERSHIP_REPORT 0x16 #define IGMP_V2_LEAVE_GROUP 0x17 #define IGMP_V1_TRACEROUTE_RESPONSE 0x1e +#define IGMP_TRACEROUTE_RESPONSE 0x1e #define IGMP_V1_TRACEROUTE_MESSAGE 0x1f +#define IGMP_TRACEROUTE_QUERY_REQ 0x1f #define IGMP_V3_MEMBERSHIP_REPORT 0x22 #define IGMP_TYPE_0x23 0x23 #define IGMP_TYPE_0x24 0x24 @@ -185,8 +187,6 @@ static int ett_mtrace_block = -1; #define IGMP_TRACEROUTE_HDR_LEN 24 #define IGMP_TRACEROUTE_RSP_LEN 32 -#define IGMP_TRACEROUTE_RESPONSE 0x1e -#define IGMP_TRACEROUTE_QUERY_REQ 0x1f static const value_string commands[] = { {IGMP_V0_CREATE_GROUP_REQUEST, "Create Group Request" }, @@ -647,9 +647,8 @@ dissect_igmp_mtrace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int typ if (blocks) col_append_str(pinfo->fd, COL_INFO, blocks); } - /* First add hidden for filtering, then add text for display purposes */ - proto_tree_add_uint_hidden(tree, hf_type, tvb, offset, 1, type); - proto_tree_add_text(tree, tvb, offset, 1, "Type: %s (0x%x)", typestr, type); + proto_tree_add_uint_format(tree, hf_type, tvb, offset, 1, type, + "Type: %s (0x%02x)", typestr, type); offset += 1; /* maximum number of hops that the requester wants to trace */ |