Open prashanthvarma opened 10 years ago
gedit openflow-common.cpp Line 59:60 'dissector_add'--------->'dissector_add_unint' That will be right.
dissector_add_uint
I have the same problem after I substituted 'dissector_add' with 'dissector_add_unint'
Try to substitute 'dissector_add' with 'dissector_add_uint', not with 'dissector_add_unint'
Thank you very much! It works!
I have the following error, while building the ofdissector, I tried replacing the dissector_add with dissector_add_unit but the problem still persists.
iplab@BorDeWolf:~/ofdissector/src$ scons install scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o openflow-common.os -c -fPIC -I. -I/usr/include/wireshark -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include openflow-common.cpp In file included from openflow-common.cpp:9:0: ./of13/openflow-130.hpp:12:0: warning: "PROTO_TAG_OPENFLOW_VER" redefined [enabled by default]
define PROTO_TAG_OPENFLOW_VER "OFP 1.3"
^ In file included from openflow-common.cpp:8:0: ./of12/openflow-120.hpp:13:0: note: this is the location of the previous definition
define PROTO_TAG_OPENFLOW_VER "OFP 1.2"
^ openflow-common.cpp: In function 'void proto_reg_handoff_openflow()': openflow-common.cpp:59:60: error: 'dissector_add' was not declared in this scope dissector_add("tcp.port", OFP_TCP_PORT, openflow_handle); ^ scons: *\ [openflow-common.os] Error 1 scons: building terminated because of errors.