diff options
Diffstat (limited to 'plugins/rtnet/packet-rtnet.c')
-rw-r--r-- | plugins/rtnet/packet-rtnet.c | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/plugins/rtnet/packet-rtnet.c b/plugins/rtnet/packet-rtnet.c index d2efa414a3..72bf9ebd6d 100644 --- a/plugins/rtnet/packet-rtnet.c +++ b/plugins/rtnet/packet-rtnet.c @@ -35,21 +35,16 @@ #include <stdio.h> #include <stdlib.h> -#include <gmodule.h> #include <ctype.h> #include <time.h> #include <string.h> + +#include <glib.h> #include <epan/packet.h> #include <epan/addr_resolv.h> #include <epan/etypes.h> #include <epan/strutil.h> -/* Define version if we are not building ethereal statically */ - -#ifndef ENABLE_STATIC -G_MODULE_EXPORT const gchar version[] = VERSION; -#endif - /* * See * @@ -1384,6 +1379,7 @@ proto_reg_handoff_rtcfg(void) { static dissector_handle_t rtcfg_handle; if( !rtcfg_initialized ){ + data_handle = find_dissector("data"); rtcfg_handle = create_dissector_handle(dissect_rtcfg, proto_rtcfg); rtcfg_initialized = TRUE; } else { @@ -1392,31 +1388,3 @@ proto_reg_handoff_rtcfg(void) { dissector_add("ethertype", ETHERTYPE_RTCFG, rtcfg_handle); } - -/* Start the functions we need for the plugin stuff */ - -#ifndef ENABLE_STATIC - -G_MODULE_EXPORT void -plugin_register(void) -{ - /* register the new protocol, protocol fields, and subtrees */ - if (proto_rtmac == -1) { /* execute protocol initialization only once */ - proto_register_rtmac(); - } - if (proto_rtcfg == -1) { /* execute protocol initialization only once */ - proto_register_rtcfg(); - } -} - -G_MODULE_EXPORT void -plugin_reg_handoff(void){ - proto_reg_handoff_rtmac(); - proto_reg_handoff_rtcfg(); - data_handle = find_dissector("data"); -} - -#endif - -/* End the functions we need for plugin stuff */ - |