aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2007-05-01 09:45:34 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2007-05-01 09:45:34 +0000
commita6b92e3e3918d6cd9a4daa7c3938383b559d63ba (patch)
tree5b98d63a08aa88d6f545049a2a9b6e67a694468b
parent45ae5ef0c71c1c28d1cb0f9cd76fc4bfbd2aadee (diff)
Make these protocols findable by name.
svn path=/trunk/; revision=21633
-rw-r--r--epan/dissectors/packet-bootp.c3
-rw-r--r--epan/dissectors/packet-dua.c3
-rw-r--r--epan/dissectors/packet-iua.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index 346517cf61..354e838ff0 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -3461,6 +3461,9 @@ proto_register_bootp(void)
proto_register_subtree_array(ett, array_length(ett));
bootp_dhcp_tap = register_tap("bootp");
+ /* Allow dissector to find be found by name. */
+ register_dissector("bootp", dissect_bootp, proto_bootp);
+
bootp_module = prefs_register_protocol(proto_bootp, NULL);
prefs_register_bool_preference(bootp_module, "novellserverstring",
diff --git a/epan/dissectors/packet-dua.c b/epan/dissectors/packet-dua.c
index 1cdc309773..8a8775781d 100644
--- a/epan/dissectors/packet-dua.c
+++ b/epan/dissectors/packet-dua.c
@@ -753,6 +753,9 @@ proto_register_dua(void)
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_dua, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ /* Allow other dissectors to find this one by name. */
+ register_dissector("dua", dissect_dua, proto_dua);
}
void
diff --git a/epan/dissectors/packet-iua.c b/epan/dissectors/packet-iua.c
index d62297a2e4..874f5de051 100644
--- a/epan/dissectors/packet-iua.c
+++ b/epan/dissectors/packet-iua.c
@@ -892,6 +892,9 @@ proto_register_iua(void)
proto_register_field_array(proto_iua, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
prefs_register_bool_preference(iua_module, "support_ig", "Support Implementers Guide", "Support Implementers Guide (version 01)", &support_IG);
+
+ /* Allow other dissectors to find this one by name. */
+ register_dissector("iua", dissect_iua, proto_iua);
}
#define SCTP_PORT_IUA 9900