我如何编译这个插件?
我正在关注 foo 解析器示例,但想知道如何编译它。
foo 解析器示例在此链接中显示: http://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html
您会注意到它提到 interlink 目录包含我可以使用的支持文件的良好示例,并且我需要修改 Makefile.am 和 Makefile.am 。 makefile.common 等 我已经修改了它们以反映 foo 模块。
但是,现在我想知道如何构建它。我尝试运行 automake 但它抱怨没有configure.in。抱歉,我对 gnu 构建环境还不太熟悉。
另外,是否可以独立构建此模块?或者我需要所有其他可用的wireshark源吗?我当然在ubuntu下安装了wireshark-dev。
I'm following the foo dissector example but would like to know how to compile it.
The foo dissector example is shown in this link:
http://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html
You'll notice it mentions that the interlink directory contains good examples of support files I can use and that I need to modify Makefile.am & makefile.common etc.
I've modified those to reflect the foo module.
However, now I'd like to know how to build it. I tried running automake but it complains there there is no configure.in. Sorry I'm not too familar with the gnu build environment yet.
Also, is it possible to build this module standalone? or do I need all the other wireshark sources available? I have of course installed wireshark-dev under ubuntu.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我完成了 README.plugins 过程,这里是我得到的:
1)在插件目录下,将
2 ) 将这些文件中出现的所有 foo 重命名为您的协议名称
3) 转至顶级wireshark 目录并运行 autogen 并配置为 root
旁注:确保在这些步骤期间没有警告或错误。 创建的协议文件夹以及源文件,并用您的协议名称替换所有出现的 gryphon 作者
编译插件。运行 make install 以防万一
5) 最后使用以下命令运行 Wireshark
6) 如果一切成功,您将看到您的插件列在“关于 Wireshark”的“插件”选项卡下。一开始我在插件版本方面遇到了一些问题。在 #include "config.h" 修复后包括以下行:
I went through README.plugins procedure and here what I've got:
1) Under plugins directory, rename
2) Rename all of the foo occurrences in those files to your protocol name
3) Go to top-level wireshark directory and run autogen and configure as a root
Side Note: Make sure there is no warnings or errors during those steps. To compile your plugin properly copy following files from gryphon plugin to your newly created protocol folder along with source files and replace all gryphon occurrences with your protocol name
4) Compile plugins using following command. Run make install just in case
5) And finally run Wireshark with following command
6) If everything successful, you will see your plugin listed under About Wireshark, Plugins tab. I had some trouble with plugin version at first. Including following line after #include "config.h" fixed it:
回答我自己的问题。
看起来我必须遵循 Wireshark 源代码中包含的说明。
即 doc/README.plugins
提供构建 Wireshark 插件所需的所有信息。
Answering my own question.
Looks like I have to follow the instructions contained in the Wireshark source.
i.e. doc/README.plugins
Provides all the information required to build plugins for Wireshark.