Wireshark支持OpenFlow

来源:互联网 发布:php求数组中的最大值 编辑:程序博客网 时间:2024/05/02 06:44

Wireshark支持OpenFlow

OpenFlow提供的wireshark插件只支持1.4版本。1.6版本的wireshark要支持OpenFlow,需要做如下:

git clone git://openflow.org/openflow.git

然后修改:utilities/wireshark_dissectors/openflow/packet-openflow.c

766行:

dissector_add(TCP_PORT_FILTER, global_openflow_proto, openflow_handle)

改为:

dissector_add_uint(TCP_PORT_FILTER,global_openflow_proto,openflow_handle)

然后当前目录下,执行sudo make编译。

将编译好的库,packet-openflow.so放入wireshark插件目录:

/usr/lib/wireshark/libwireshark1/plugins/

重启wireshark,查看插件里面有木有packet-openflow,如图:


之后,过滤框中填写of,点击应用即可。

注意:要使用wireshark抓包,必须以root执行,在终端中:

wireshark &

参考:

https://mailman.stanford.edu/pipermail/openflow-discuss/2011-December/002914.html

http://www.noxrepo.org/2012/03/openflow-wireshark-dissector-on-windows/

原创粉丝点击