aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rmt-norm.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-05-27 23:21:11 +0000
committerMichael Mann <mmann78@netscape.net>2013-05-27 23:21:11 +0000
commitb0090fd046d98c1410cb1f8d4012fea905621fc8 (patch)
tree10822d3a44ec601f38bf0d5547050d839395ddcb /epan/dissectors/packet-rmt-norm.c
parent0ee4d0a00abd69e6479a55c12425c92cdf916d71 (diff)
Batch of filterable expert infos
svn path=/trunk/; revision=49600
Diffstat (limited to 'epan/dissectors/packet-rmt-norm.c')
-rw-r--r--epan/dissectors/packet-rmt-norm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rmt-norm.c b/epan/dissectors/packet-rmt-norm.c
index 7d6640a18a..23a044a646 100644
--- a/epan/dissectors/packet-rmt-norm.c
+++ b/epan/dissectors/packet-rmt-norm.c
@@ -207,6 +207,7 @@ static int ett_streampayload = -1;
static int ett_congestioncontrol = -1;
static int ett_nackdata = -1;
+static expert_field ei_version1_only = EI_INIT;
static const double RTT_MIN = 1.0e-06;
static const double RTT_MAX = 1000;
@@ -600,7 +601,7 @@ dissect_norm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
* If version > 1 print only version field and quit.
*/
if (version != 1) {
- expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_WARN, "Sorry, this dissector supports ALC version 1 only");
+ expert_add_info(pinfo, ti, &ei_version1_only);
/* Complete entry in Info column on summary display */
col_add_fstr(pinfo->cinfo, COL_INFO, "Version: %u (not supported)", version);
@@ -816,7 +817,12 @@ void proto_register_norm(void)
&ett_nackdata,
};
+ static ei_register_info ei[] = {
+ { &ei_version1_only, { "alc.version1_only", PI_PROTOCOL, PI_WARN, "Sorry, this dissector supports ALC version 1 only", EXPFILL }},
+ };
+
module_t *module;
+ expert_module_t* expert_rmt_norm;
/* Register the protocol name and description */
proto_rmt_norm = proto_register_protocol("Negative-acknowledgment Oriented Reliable Multicast", "NORM", "norm");
@@ -824,6 +830,8 @@ void proto_register_norm(void)
/* Register the header fields and subtrees used */
proto_register_field_array(proto_rmt_norm, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ expert_rmt_norm = expert_register_protocol(proto_rmt_norm);
+ expert_register_field_array(expert_rmt_norm, ei, array_length(ei));
/* Register preferences */