diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-11-13 01:31:57 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-11-13 01:31:57 +0000 |
commit | a042c3aedd2b586aa6fe15cb532eddb072baf866 (patch) | |
tree | 1fa6c56b6f83f0ce618a1e250ddf1f48449a8c64 /epan/dissectors/packet-tuxedo.c | |
parent | 62d20ccfb676da557c21a14034da416b40dc175c (diff) |
Small changes related to proto_register & proto_reg_handoff
- Move find_dissector_table(...) to proto_reg_handoff;
- Use dissactor_add_handle instead of registering the dissector to tcp port 0;
- Use find_dissector when appropriate.
svn path=/trunk/; revision=26767
Diffstat (limited to 'epan/dissectors/packet-tuxedo.c')
-rw-r--r-- | epan/dissectors/packet-tuxedo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tuxedo.c b/epan/dissectors/packet-tuxedo.c index 92572a0fca..58fd655ff8 100644 --- a/epan/dissectors/packet-tuxedo.c +++ b/epan/dissectors/packet-tuxedo.c @@ -187,13 +187,13 @@ proto_register_tuxedo(void) proto_register_field_array(proto_tuxedo, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - tuxedo_handle = create_dissector_handle(dissect_tuxedo, proto_tuxedo); } void proto_reg_handoff_tuxedo(void) { - heur_dissector_add("tcp", dissect_tuxedo_heur, proto_tuxedo); + tuxedo_handle = create_dissector_handle(dissect_tuxedo, proto_tuxedo); dissector_add_handle("tcp.port", tuxedo_handle); + heur_dissector_add("tcp", dissect_tuxedo_heur, proto_tuxedo); } |