aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/sv/packet-sv-template.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-06-03 03:42:36 +0000
committerMichael Mann <mmann78@netscape.net>2013-06-03 03:42:36 +0000
commit7fe5422c4b4cd58dd7ffeebd984e7668cf61ab5d (patch)
treed1e444e2c6fa430fb2b7d048aafbbbefe8701641 /asn1/sv/packet-sv-template.c
parenta28cbb7c8a83362e74b7e3db07c49d551d519983 (diff)
downloadwireshark-7fe5422c4b4cd58dd7ffeebd984e7668cf61ab5d.tar.gz
wireshark-7fe5422c4b4cd58dd7ffeebd984e7668cf61ab5d.tar.bz2
wireshark-7fe5422c4b4cd58dd7ffeebd984e7668cf61ab5d.zip
Convert ASN.1 dissectors to use filterable expert info.
NOTE: Kerberos ASN.1 template was updated, but not generated to source. svn path=/trunk/; revision=49707
Diffstat (limited to 'asn1/sv/packet-sv-template.c')
-rw-r--r--asn1/sv/packet-sv-template.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/asn1/sv/packet-sv-template.c b/asn1/sv/packet-sv-template.c
index 9b3f730b0d..5ad3a71e9f 100644
--- a/asn1/sv/packet-sv-template.c
+++ b/asn1/sv/packet-sv-template.c
@@ -110,6 +110,8 @@ static int ett_phsmeas_q = -1;
#include "packet-sv-ett.c"
+static expert_field ei_sv_mal_utctime = EI_INIT;
+
#if 0
static const value_string sv_q_validity_vals[] = {
{ 0, "good" },
@@ -317,6 +319,12 @@ void proto_register_sv(void) {
#include "packet-sv-ettarr.c"
};
+ static ei_register_info ei[] = {
+ { &ei_sv_mal_utctime, { "sv.malformed.utctime", PI_MALFORMED, PI_WARN, "BER Error: malformed UTCTime encoding", EXPFILL }},
+ };
+
+ expert_module_t* expert_sv;
+
/* Register protocol */
proto_sv = proto_register_protocol(PNAME, PSNAME, PFNAME);
register_dissector("sv", dissect_sv, proto_sv);
@@ -324,6 +332,8 @@ void proto_register_sv(void) {
/* Register fields and subtrees */
proto_register_field_array(proto_sv, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ expert_sv = expert_register_protocol(proto_sv);
+ expert_register_field_array(expert_sv, ei, array_length(ei));
/* Register tap */
sv_tap = register_tap("sv");