From b0090fd046d98c1410cb1f8d4012fea905621fc8 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Mon, 27 May 2013 23:21:11 +0000 Subject: Batch of filterable expert infos svn path=/trunk/; revision=49600 --- epan/dissectors/packet-rmt-norm.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-rmt-norm.c') 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 */ -- cgit v1.2.3