diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-10-08 15:58:22 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-10-08 15:58:22 +0000 |
commit | 639b0468975221a588e087354270e27908b65623 (patch) | |
tree | 851f53c949cd285665288ff654a5eff145f68315 /epan | |
parent | aa42e59aaeae90b966696dea517de096fd52952b (diff) |
Register to TCP port 0 to be able to do "decode as".
svn path=/trunk/; revision=23094
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-fix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c index b5ce04907b..00b39999b6 100644 --- a/epan/dissectors/packet-fix.c +++ b/epan/dissectors/packet-fix.c @@ -6439,10 +6439,14 @@ proto_register_fix(void) void proto_reg_handoff_fix(void) { + static dissector_handle_t fix_handle; /* * The first time the function is called let the tcp dissector * know that we're interested in traffic */ heur_dissector_add("tcp", dissect_fix, proto_fix); + /* Register fix to TCP port 0 to be able to do "dissect as"*/ + fix_handle = new_create_dissector_handle(dissect_fix, proto_fix); + dissector_add("tcp.port", 0, fix_handle); } |