aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smpp.c
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2007-09-19 17:33:08 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2007-09-19 17:33:08 +0000
commit0a70e998d51acfce9c02ab36c6d60fec7a1917dc (patch)
tree7915ecdc0c97483d30e71db4409127eef9a4d89e /epan/dissectors/packet-smpp.c
parentd2020ecc61375e8abb19ce780927cd44ef9c0e35 (diff)
Make this dissector finable by name.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22908 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-smpp.c')
-rw-r--r--epan/dissectors/packet-smpp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smpp.c b/epan/dissectors/packet-smpp.c
index de5544dfed..728545b279 100644
--- a/epan/dissectors/packet-smpp.c
+++ b/epan/dissectors/packet-smpp.c
@@ -2748,12 +2748,15 @@ proto_register_smpp(void)
DebugLog(("Registering SMPP dissector\n"));
/* Register the protocol name and description */
proto_smpp = proto_register_protocol("Short Message Peer to Peer",
- "SMPP", "smpp");
+ "SMPP", "smpp");
/* Required function calls to register header fields and subtrees used */
proto_register_field_array(proto_smpp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ /* Allow other dissectors to find this one by name. */
+ register_dissector("smpp", dissect_smpp, proto_smpp);
+
/* Preferences */
smpp_module = prefs_register_protocol (proto_smpp, NULL);
prefs_register_bool_preference (smpp_module,