diff options
author | Michael Mann <mmann78@netscape.net> | 2015-04-02 17:15:08 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-04-04 02:21:01 +0000 |
commit | f031fafdcc5792ba5011e2fcd7a33cbea450148c (patch) | |
tree | 4e7192c9fd107d9c44081f2d595259399f60d4b9 /epan/dissectors/packet-cipmotion.c | |
parent | a655c9a7f0c648b70e8b8213cfd5487b29ec69e0 (diff) |
Add proper "Decode As" mechanism for EtherNet/IP I/O instead of preference.
Change-Id: I9d7c0f296176679b61d7ee0c4358ce409dfc4f4f
Reviewed-on: https://code.wireshark.org/review/7895
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-cipmotion.c')
-rw-r--r-- | epan/dissectors/packet-cipmotion.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cipmotion.c b/epan/dissectors/packet-cipmotion.c index ce7bffe4a3..d5e2c785aa 100644 --- a/epan/dissectors/packet-cipmotion.c +++ b/epan/dissectors/packet-cipmotion.c @@ -30,7 +30,7 @@ #include "packet-cip.h" void proto_register_cipmotion(void); -/* The entry point to the actual disection is: dissect_cipmotion */ +void proto_reg_handoff_cipmotion(void); /* Protocol handle for CIP Motion */ static int proto_cipmotion = -1; @@ -2884,6 +2884,15 @@ proto_register_cipmotion(void) register_dissector( "cipmotion", dissect_cipmotion, proto_cipmotion); } +void proto_reg_handoff_cipmotion(void) +{ + dissector_handle_t cipmotion_handle; + + /* Create and register dissector for I/O data handling */ + cipmotion_handle = create_dissector_handle( dissect_cipmotion, proto_cipmotion ); + dissector_add_for_decode_as("enip.io", cipmotion_handle ); +} + /* * Editor modelines - http://www.wireshark.org/tools/modelines.html * |