2013年5月15日 星期三

[tool][wireshark][openflow] Installing wireshark on linux for openflow packet captures

[tool][wireshark][openflow] Installing wireshark on linux for openflow packet captures

01. INSTALLING WIRESHARK FROM REPOSITORIES
  • apt-get update && apt-get install wireshark-dev wireshark mercurial git

02. DOWNLOAD AND INSTALLING THE OPENFLOW WIRESHARK DISSECTOR OPTION #2
  • git clone git://openflow.org/openflow.git
  • cd openflow/
  • ./boot.sh
  • ./configure
  • make
  • sudo make install
  • cd utilities/wireshark_dissectors/openflow/

03. EDIT PACket-openflow.c File
  • vim openflow/utilities/wireshark_dissectors/openflow/utilities/wireshark_dissectors/openflow/packet-openflow.c
  • 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_unit(TCP_PORT_FILTER, global_openflow_proto, openflow_handle);
    }

04. make PACKET-OPENFLOW.o and install into wireshark plugin
  • directory : openflow/utilities/wireshark_dissectors/openflow/utilities/wireshark_dissectors/openflow/
  • make
  • sudo make install
  • cp /var/packet-openflow.so /usr/lib/wireshark/libwireshark1/plugins/


Ref :
http://networkstatic.net/installing-wireshark-on-linux-for-openflow-packet-captures/










沒有留言:

張貼留言