From Chris Maynard (bug 1852):
authorrichardv <richardv@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 10 Jan 2008 16:35:54 +0000 (16:35 +0000)
committerrichardv <richardv@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 10 Jan 2008 16:35:54 +0000 (16:35 +0000)
These packet-g*.c files all have display filter issues:

1) packet-gryphon.c: PROTOABBREV is "gryphon", but display filter fields are
prefixed with only "gryph".

2) packet-gmrp.c: PROTOABBREV is "gmrp", but display filter fields are prefixed
with "garp".

3) packet-gssapi.c: PROTOABBREV is "gss-api", but display filter fields are
prefixed with "gssapi".

4) packet-gvrp.c: PROTOABBREV is "gvrp", but display filter fields are prefixed
with "garp", most of which conflict with packet-gmrp.c's display filter fields.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24058 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-gmrp.c
epan/dissectors/packet-gssapi.c
epan/dissectors/packet-gvrp.c
plugins/gryphon/packet-gryphon.c

index 91478ef070bdcd798abe20c1e03fe31d45d8eee8..458d10aef612a1ea7209fffa8b46b0ef72dc1607 100644 (file)
@@ -345,32 +345,32 @@ proto_register_gmrp(void)
 {
     static hf_register_info hf[] = {
        { &hf_gmrp_proto_id,
-           { "Protocol ID", "garp.protocol_id",
+           { "Protocol ID", "gmrp.protocol_id",
            FT_UINT16,      BASE_HEX,      NULL,  0x0,
            "" , HFILL }
        },
        { &hf_gmrp_attribute_type,
-           { "Type",        "garp.attribute_type",
+           { "Type",        "gmrp.attribute_type",
            FT_UINT8,        BASE_HEX,      VALS(attribute_type_vals),  0x0,
            "" , HFILL }
        },
        { &hf_gmrp_attribute_length,
-           { "Length",      "garp.attribute_length",
+           { "Length",      "gmrp.attribute_length",
            FT_UINT8,        BASE_DEC,      NULL,  0x0,
            "" , HFILL }
        },
        { &hf_gmrp_attribute_event,
-           { "Event",       "garp.attribute_event",
+           { "Event",       "gmrp.attribute_event",
            FT_UINT8,        BASE_DEC,      VALS(event_vals),  0x0,
            "" , HFILL }
        },
        { &hf_gmrp_attribute_value_group_membership,
-           { "Value",       "garp.attribute_value_group_membership",
+           { "Value",       "gmrp.attribute_value_group_membership",
            FT_ETHER,        BASE_HEX,      NULL,  0x0,
            "" , HFILL }
        },
        { &hf_gmrp_attribute_value_service_requirement,
-           { "Value",       "garp.attribute_value_service_requirement",
+           { "Value",       "gmrp.attribute_value_service_requirement",
            FT_UINT8,        BASE_HEX,      NULL,  0x0,
            "" , HFILL }
        }
index 8f2d3ad477a32a39d2778e9d7689120c19fbb1ad..894dfeb6826db86a20af3ebaa49fe9a257a54413 100644 (file)
@@ -492,31 +492,31 @@ proto_register_gssapi(void)
 {
        static hf_register_info hf[] = {
        { &hf_gssapi_oid, 
-               { "OID", "gssapi.OID", FT_STRING, BASE_NONE,
+               { "OID", "gss-api.OID", FT_STRING, BASE_NONE,
                  NULL, 0, "This is a GSS-API Object Identifier", HFILL }},
        { &hf_gssapi_segment,
-               { "GSSAPI Segment", "gssapi.segment", FT_FRAMENUM, BASE_NONE, 
+               { "GSSAPI Segment", "gss-api.segment", FT_FRAMENUM, BASE_NONE, 
                  NULL, 0x0, "GSSAPI Segment", HFILL }},
        { &hf_gssapi_segments,
-               { "GSSAPI Segments", "gssapi.segment.segments", FT_NONE, BASE_NONE, 
+               { "GSSAPI Segments", "gss-api.segment.segments", FT_NONE, BASE_NONE, 
                  NULL, 0x0, "GSSAPI Segments", HFILL }},
        { &hf_gssapi_segment_overlap,
-               { "Fragment overlap",   "gssapi.segment.overlap", FT_BOOLEAN, BASE_NONE, 
+               { "Fragment overlap",   "gss-api.segment.overlap", FT_BOOLEAN, BASE_NONE, 
                   NULL, 0x0, "Fragment overlaps with other fragments", HFILL }},
        { &hf_gssapi_segment_overlap_conflict,
-               { "Conflicting data in fragment overlap",       "gssapi.segment.overlap.conflict", FT_BOOLEAN, BASE_NONE, 
+               { "Conflicting data in fragment overlap",       "gss-api.segment.overlap.conflict", FT_BOOLEAN, BASE_NONE, 
                  NULL, 0x0, "Overlapping fragments contained conflicting data", HFILL }},
        { &hf_gssapi_segment_multiple_tails,
-               { "Multiple tail fragments found",      "gssapi.segment.multipletails", FT_BOOLEAN, BASE_NONE, 
+               { "Multiple tail fragments found",      "gss-api.segment.multipletails", FT_BOOLEAN, BASE_NONE, 
                  NULL, 0x0, "Several tails were found when defragmenting the packet", HFILL }},
        { &hf_gssapi_segment_too_long_fragment,
-               { "Fragment too long",  "gssapi.segment.toolongfragment", FT_BOOLEAN, BASE_NONE, 
+               { "Fragment too long",  "gss-api.segment.toolongfragment", FT_BOOLEAN, BASE_NONE, 
                  NULL, 0x0, "Fragment contained data past end of packet", HFILL }},
        { &hf_gssapi_segment_error,
-               { "Defragmentation error", "gssapi.segment.error", FT_FRAMENUM, BASE_NONE, 
+               { "Defragmentation error", "gss-api.segment.error", FT_FRAMENUM, BASE_NONE, 
                  NULL, 0x0, "Defragmentation error due to illegal fragments", HFILL }},
        { &hf_gssapi_reassembled_in,
-               { "Reassembled In", "gssapi.reassembled_in", FT_FRAMENUM, BASE_DEC, 
+               { "Reassembled In", "gss-api.reassembled_in", FT_FRAMENUM, BASE_DEC, 
                  NULL, 0x0, "The frame where this pdu is reassembled", HFILL }},
 
        };
index 989f5f3f78d815e142b4beafbea21482aa6c0aac..3608c7b5d6b874b628663044fab5d0c7cb6ea6ba 100644 (file)
@@ -301,27 +301,27 @@ proto_register_gvrp(void)
 {
     static hf_register_info hf[] = {
        { &hf_gvrp_proto_id,
-           { "Protocol ID", "garp.protocol_id",
+           { "Protocol ID", "gvrp.protocol_id",
            FT_UINT16,      BASE_HEX,      NULL,  0x0,
            "", HFILL }
        },
        { &hf_gvrp_attribute_type,
-           { "Type",        "garp.attribute_type",
+           { "Type",        "gvrp.attribute_type",
            FT_UINT8,        BASE_HEX,      VALS(attribute_type_vals),  0x0,
            "", HFILL }
        },
        { &hf_gvrp_attribute_length,
-           { "Length",      "garp.attribute_length",
+           { "Length",      "gvrp.attribute_length",
            FT_UINT8,        BASE_DEC,      NULL,  0x0,
            "", HFILL }
        },
        { &hf_gvrp_attribute_event,
-           { "Event",       "garp.attribute_event",
+           { "Event",       "gvrp.attribute_event",
            FT_UINT8,        BASE_DEC,      VALS(event_vals),  0x0,
            "", HFILL }
        },
        { &hf_gvrp_attribute_value,
-           { "Value",       "garp.attribute_value",
+           { "Value",       "gvrp.attribute_value",
            FT_UINT16,       BASE_DEC,      NULL,  0x0,
            "", HFILL }
        }
index 75aad52ac394467bbd363a7a3df243c2347f037c..7743d313b7a744605aba40726a61376f2422f016 100644 (file)
 
 static int proto_gryphon = -1;
 
-static int hf_gryph_src = -1;
-static int hf_gryph_srcchan = -1;
-static int hf_gryph_dest = -1;
-static int hf_gryph_destchan= -1;
-static int hf_gryph_type = -1;
-static int hf_gryph_cmd = -1;
+static int hf_gryphon_src = -1;
+static int hf_gryphon_srcchan = -1;
+static int hf_gryphon_dest = -1;
+static int hf_gryphon_destchan= -1;
+static int hf_gryphon_type = -1;
+static int hf_gryphon_cmd = -1;
 
 static gint ett_gryphon = -1;
 static gint ett_gryphon_header = -1;
@@ -264,18 +264,18 @@ dissect_gryphon_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
        "Source: %s, channel %u",
        val_to_str(src, src_dest, "Unknown (0x%02x)"),
        tvb_get_guint8(tvb, offset + 1));
-    proto_tree_add_uint_hidden(header_tree, hf_gryph_src, tvb,
+    proto_tree_add_uint_hidden(header_tree, hf_gryphon_src, tvb,
        offset, 1, src);
-    proto_tree_add_uint_hidden(header_tree, hf_gryph_srcchan, tvb,
+    proto_tree_add_uint_hidden(header_tree, hf_gryphon_srcchan, tvb,
        offset+1, 1, tvb_get_guint8(tvb, offset + 1));
 
     proto_tree_add_text(header_tree, tvb, offset+2, 2,
        "Destination: %s, channel %u",
        val_to_str(dest, src_dest, "Unknown (0x%02x)"),
        tvb_get_guint8(tvb, offset + 3));
-    proto_tree_add_uint_hidden(header_tree, hf_gryph_dest, tvb,
+    proto_tree_add_uint_hidden(header_tree, hf_gryphon_dest, tvb,
        offset+2, 1, dest);
-    proto_tree_add_uint_hidden(header_tree, hf_gryph_destchan, tvb,
+    proto_tree_add_uint_hidden(header_tree, hf_gryphon_destchan, tvb,
        offset+3, 1, tvb_get_guint8(tvb, offset + 3));
 
     proto_tree_add_text(header_tree, tvb, offset+4, 2,
@@ -296,7 +296,7 @@ dissect_gryphon_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
     }
     proto_tree_add_text(header_tree, tvb, offset+7, 1, "reserved");
 
-    proto_tree_add_uint_hidden(header_tree, hf_gryph_type, tvb,
+    proto_tree_add_uint_hidden(header_tree, hf_gryphon_type, tvb,
        offset+6, 1, frmtyp);
     msgpad = 3 - (msglen + 3) % 4;
     msgend = offset + msglen + msgpad + MSG_HDR_SZ;
@@ -638,7 +638,7 @@ decode_command(tvbuff_t *tvb, int offset, int dst, proto_tree *pt)
 
     msglen = tvb_reported_length_remaining(tvb, offset);
     cmd = tvb_get_guint8(tvb, offset);
-    proto_tree_add_uint_hidden(pt, hf_gryph_cmd, tvb, offset, 1, cmd);
+    proto_tree_add_uint_hidden(pt, hf_gryphon_cmd, tvb, offset, 1, cmd);
     if (cmd > 0x3F)
        cmd += dst * 256;
 
@@ -2224,23 +2224,23 @@ void
 proto_register_gryphon(void)
 {
     static hf_register_info hf[] = {
-       { &hf_gryph_src,
-       { "Source",           "gryph.src", FT_UINT8, BASE_HEX, VALS(src_dest), 0x0,
+       { &hf_gryphon_src,
+       { "Source",           "gryphon.src", FT_UINT8, BASE_HEX, VALS(src_dest), 0x0,
                "", HFILL }},
-       { &hf_gryph_srcchan,
-       { "Source channel",   "gryph.srcchan", FT_UINT8, BASE_DEC, NULL, 0x0,
+       { &hf_gryphon_srcchan,
+       { "Source channel",   "gryphon.srcchan", FT_UINT8, BASE_DEC, NULL, 0x0,
                "", HFILL }},
-       { &hf_gryph_dest,
-       { "Destination",      "gryph.dest", FT_UINT8, BASE_HEX, VALS(src_dest), 0x0,
+       { &hf_gryphon_dest,
+       { "Destination",      "gryphon.dest", FT_UINT8, BASE_HEX, VALS(src_dest), 0x0,
                "", HFILL }},
-       { &hf_gryph_destchan,
-       { "Destination channel", "gryph.dstchan", FT_UINT8, BASE_DEC, NULL, 0x0,
+       { &hf_gryphon_destchan,
+       { "Destination channel", "gryphon.destchan", FT_UINT8, BASE_DEC, NULL, 0x0,
                "", HFILL }},
-       { &hf_gryph_type,
-       { "Frame type",       "gryph.type", FT_UINT8, BASE_DEC, NULL, 0x0,
+       { &hf_gryphon_type,
+       { "Frame type",       "gryphon.type", FT_UINT8, BASE_DEC, NULL, 0x0,
                "", HFILL }},
-       { &hf_gryph_cmd,
-       { "Command",          "gryph.cmd.cmd", FT_UINT8, BASE_DEC, NULL, 0x0,
+       { &hf_gryphon_cmd,
+       { "Command",          "gryphon.cmd", FT_UINT8, BASE_DEC, NULL, 0x0,
                "", HFILL }},
     };