aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tds.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2008-10-16 07:20:02 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2008-10-16 07:20:02 +0000
commit25cd2bc4d26b59a472ae578211ae3fc10c95399c (patch)
treebbd65ca20221b20172a4fa8438d32d0b6b32d1e5 /epan/dissectors/packet-tds.c
parent2e68f4386c89d8a840863c77178775c600b337b3 (diff)
From Scott Roberts:
Patch to have the tds dissector register itself by name. And fix the name of the register function itself. svn path=/trunk/; revision=26474
Diffstat (limited to 'epan/dissectors/packet-tds.c')
-rw-r--r--epan/dissectors/packet-tds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index 592da5c7cd..315900561a 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -1981,7 +1981,7 @@ tds_init(void)
*/
void
-proto_register_netlib(void)
+proto_register_tds(void)
{
static hf_register_info hf[] = {
{ &hf_tds_type,
@@ -2139,6 +2139,9 @@ proto_register_netlib(void)
proto_register_field_array(proto_tds, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+/* Allow dissector to be found by name. */
+ register_dissector("tds", dissect_tds_tcp, proto_tds);
+
tds_module = prefs_register_protocol(proto_tds, NULL);
prefs_register_bool_preference(tds_module, "desegment_buffers",
"Reassemble TDS buffers spanning multiple TCP segments",