aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gearman.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-05-26 03:29:07 +0000
committerMichael Mann <mmann78@netscape.net>2013-05-26 03:29:07 +0000
commit5bc22a25df02c19a2414bcf3c5ea3446cf96c7ef (patch)
treecd264649621f031a8edcfa7cbd34ba4b0a8d5450 /epan/dissectors/packet-gearman.c
parenta9c35aa4b65dc566ffe845e9bc205e81ecc7979c (diff)
Batch of filterable expert infos.
svn path=/trunk/; revision=49584
Diffstat (limited to 'epan/dissectors/packet-gearman.c')
-rw-r--r--epan/dissectors/packet-gearman.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gearman.c b/epan/dissectors/packet-gearman.c
index f41b04fa46..8677ec8b14 100644
--- a/epan/dissectors/packet-gearman.c
+++ b/epan/dissectors/packet-gearman.c
@@ -69,6 +69,8 @@ static gint ett_gearman = -1;
static gint ett_gearman_command = -1;
static gint ett_gearman_content = -1;
+static expert_field ei_gearman_pkt_type_unknown = EI_INIT;
+
static gboolean gearman_desegment = TRUE;
static const int GEARMAN_COMMAND_HEADER_SIZE = 12;
@@ -408,7 +410,7 @@ dissect_binary_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
default:
if (size > 0)
- expert_add_info_format(pinfo, content_item, PI_PROTOCOL, PI_WARN, "Unknown command");
+ expert_add_info(pinfo, content_item, &ei_gearman_pkt_type_unknown);
}
col_set_fence(pinfo->cinfo, COL_INFO);
@@ -518,12 +520,19 @@ proto_register_gearman(void)
&ett_gearman_content
};
+ static ei_register_info ei[] = {
+ { &ei_gearman_pkt_type_unknown, { "gearman.pkt_type.unknown", PI_PROTOCOL, PI_WARN, "Unknown command", EXPFILL }},
+ };
+
module_t *gearman_module;
+ expert_module_t* expert_gearman;
proto_gearman = proto_register_protocol("Gearman Protocol", "Gearman", "gearman");
proto_register_field_array(proto_gearman, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ expert_gearman = expert_register_protocol(proto_gearman);
+ expert_register_field_array(expert_gearman, ei, array_length(ei));
gearman_module = prefs_register_protocol(proto_gearman, NULL);
prefs_register_bool_preference(gearman_module, "desegment",