编译了Wireshark插件



尝试使用wireshark-nfc示例编译wireshark插件(https://code.google.com/archive/p/wireshark-nfc/)

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define WS_BUILD_DLL
#include <gmodule.h>
/* Included *after* config.h, in order to re-define these macros */
#ifdef PACKAGE
#undef PACKAGE
#endif
/* Name of package */
#define PACKAGE "nfc-wireshark"
#ifdef VERSION
#undef VERSION
#endif
/* Version number of package */
#define VERSION "0.8.0"
#define WIRESHARK_VERSION_MAJOR "0.8.0"
#define WIRESHARK_VERSION_MINOR "0.8.0"
#ifndef ENABLE_STATIC
G_MODULE_EXPORT const gchar plugin_version[] = VERSION;
G_MODULE_EXPORT const gchar plugin_want_major[] = WIRESHARK_VERSION_MAJOR;
G_MODULE_EXPORT const gchar plugin_want_minor[] = WIRESHARK_VERSION_MINOR;
G_MODULE_EXPORT void plugin_register(void) {
extern void proto_register_llcp(void);
extern void proto_register_snep(void);
extern void proto_register_ndef(void);
proto_register_llcp();
proto_register_ndef();
proto_register_snep();
}
G_MODULE_EXPORT void plugin_reg_handoff(void) {
extern void proto_reg_handoff_llcp(void);
extern void proto_reg_handoff_snep(void);
extern void proto_reg_handoff_ndep(void);
proto_reg_handoff_llcp();
proto_reg_handoff_snep();
proto_reg_handoff_ndef();
}
#endif

我在编译时使用这个文件,一切正常,但在wireshrk应用程序中,它显示一个错误

插件nfc-wireshark。

你之前发布的图片显示了一个不同的版本:"775433776.775433776"这些十进制数等于x2E382E30.x2E382E30。这看起来像是"。8.0","。8.0"。

如果你想编译Wireshark 3.4.9(最新版本),我会尝试改变定义

#define WIRESHARK_VERSION_MAJOR "3"
#define WIRESHARK_VERSION_MINOR "4"

相关内容

  • 没有找到相关文章

最新更新