编译wireshark OpenFlow插件
最近在研究OpenFlow,为了使wireshark支持OpenFlow协议分析数据包,需要编译OpenFlow插件。现在说一下我的过程。
编译wireshark-1.6.8
到www.wireshark.org下载wireshark源码包。http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.6.8.tar.bz2。
安装依赖包
apt-get install build-essential
编译OpenFlow插件
修改一处bug
修改
diff --git a/utilities/wireshark_dissectors/openflow/packet-openflow.c b/utilities/wireshark_dissectors/openflow/packet-openflow.c index aea00f8..8d98335 100644 --- a/utilities/wireshark_dissectors/openflow/packet-openflow.c +++ b/utilities/wireshark_dissectors/openflow/packet-openflow.c @@ -766,7 +766,7 @@ static gint ett_ofp_error_msg_data = -1; void proto_reg_handoff_openflow() { openflow_handle = create_dissector_handle(dissect_openflow, proto_openflow); - dissector_add(TCP_PORT_FILTER, global_openflow_proto, openflow_handle); + dissector_add_uint(TCP_PORT_FILTER, global_openflow_proto, + openflow_handle); } #define NO_STRINGS NULL
就可以了
相关推荐
fearlessxjdx 2019-06-29
mirahs 2019-06-28
flying00 2016-11-20
wangdy00 2015-08-27
hjyzjustudy 2015-10-10
前端早读课 2012-01-13
图流量监控 2011-11-24
夜影风个人空间 2011-11-18
machael 2011-11-09
Liyiming 2011-09-08
软件架构师何志丹 2011-07-12
兰海泽 2015-08-04
ponymwt 2015-07-02
feiniao 2013-09-13
jiafenbacomcn 2015-09-24
wuyongpeng 2015-04-28
zcy 2015-04-15