Wireshark with Openflow-Plugin in Fedora 14

參考這篇文章
http://networkstatic.net/installing-wireshark-on-linux-for-openflow-packet-captures/

###安裝wireshark source###

編譯openflow plugin

Options 1

1
2
3
4
5
6
7
Change from:
static void dissect_dl_type(....)
{
....
const char* description = try_val_to_str(dl_type, etype_vals);
....
}
1
2
3
4
5
6
7
To:
static void dissect_dl_type(....)
{
....
const char* description = match_strval(dl_type, etype_vals);
....
}
  • scons install
  • export WIRESHARK=/path_to_wireshark_source/
  • scons install
  • cp openflow.so /usr/lib/wireshark/libwireshark1/plugins/openflow.so

Options 2

  • git clone git://openflow.org/openflow.git
  • cd openflow
  • ./boot.sh
  • ./configure
  • make
  • sudo make install
  • cd utilities/wireshark_dissectors/openflow
  • 修改 packet-openflow.c
1
2
3
4
5
6
Change from:
void proto_reg_handoff_openflow()
{
openflow_handle = create_dissector_handle(dissect_openflow, proto_openflow);
dissector_add(TCP_PORT_FILTER, global_openflow_proto, openflow_handle);
}
1
2
3
4
5
6
To:
void proto_reg_handoff_openflow()
{
openflow_handle = create_dissector_handle(dissect_openflow, proto_openflow);
dissector_add_uint(TCP_PORT_FILTER, global_openflow_proto, openflow_handle);
}

####安裝openflow plugin####

  • make ( pwd = utilities/wireshark_dissectors/openflow)
  • make install

####Use####
開啟wireshark即可觀看openflow protocol囉