wireshark 开源网络数据包分析软件

wireshark 最新编译方法-2.0.0

vs2013-qt5.3.0-win32/win64

wireshark 开源网络数据包分析软件的源代码生成:

GIT代码托管网: www.github.com   或      https://www.wireshark.org/

我下载的是2.0.0, 现在己经采用QT进行界面重写了.

附加软件有: cygwin  Python27 cmake等 

官方参考: https://www.wireshark.org/docs/wsdg_html_chunked/

关于cygwin中须要下的软件参考https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChSetupCygwin

  • Archive/unzip (not needed if using CMake)
  • Devel/bison (or install Win flex-bison - see Chocolatey below)
  • Devel/flex (or install Win flex-bison - see Chocolatey below)
  • Devel/git (recommended - see discussion about using Git below)
  • Interpreters/perl
  • Utils/patch (only if needed) (may be Devel/patch instead)
  • Web/wget (not needed if using CMake)
  • Text/asciidoc
  • Text/docbook-xml45

You might also have to install

  • Interpreters/m4

一,//基本编译命令: 

1>检查工具链: 如果差什么东东,可以在cygwin中下载过来,cygwin是在windows模仿linux环境的软件,可以完全保留linux环境, 非常不错.

nmake -f Makefile.nmake verify_tools

2>下载工具链: 

nmake -f Makefile.nmake setup

说明: http://anonsvn.wireshark.org/wireshark-w32-libs/trunk/packages 其实是在这下载的win32/win64是系统类型; 具体看 tools/win-setup.sh 文件中.
3>清理工程
nmake -f Makefile.nmake distclean

4>编译工程
nmake -f Makefile.nmake all

这样可以生成windows平台下的执行软件.

二, 我现在用的是vs2013, 须要把源代码添加进ide进行开发,此时须要cmake[这个是win平台的cmake,不是linux/cygwin的]

set CYGWIN=c:\cygwin\bin
set WIRESHARK_TARGET_PLATFORM=win32
set WIRESHARK_BASE_DIR=C:\program-code\wireshark\
set WIRESHARK_LIB_DIR=C:\program-code\wireshark\Wireshark-win32-libs-2.0
set QT5_BASE_DIR=C:\Qt\32\Qt5.3.0\5.3\msvc2013
set WIRESHARK_VERSION_EXTRA=2.0
set WIRESHARK_CYGWIN_INSTALL_PATH=c:\cygwin
set VisualStudioVersion=12.0
mkdir wsbuild32
cd wsbuild32
"C:\Program Files (x86)\CMake\bin\cmake" -DENABLE_CHM_GUIDES=on -G "Visual Studio 12" ..\wireshark-2.0.0

//说明: 我的wireshark源代码在 C:\program-code\wireshark\wireshark-2.0.0 目录[没有子目录,所有代码的所在],

使用vs的命令行工具[ VS2013 x86 本机工具命令提示] 进入 C:\program-code\wireshark,运行以上代码就可以了,也可以在ide中去编译源码.

参考文档:   

 README.cmake   使用cmake的方法;

README.windows 在windows下编译的方法

config.nmake[使用第一种方法时,须要修改这个配置文档] 

解码处理原理说明-协议树+处理函数:


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值