ofdissector icon indicating copy to clipboard operation
ofdissector copied to clipboard

openflow-common.cpp:59:60: error: 'dissector_add' was not declared in this scope

Open prashanthvarma opened this issue 11 years ago • 5 comments

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.

prashanthvarma avatar May 15 '14 11:05 prashanthvarma

gedit openflow-common.cpp Line 59:60 'dissector_add'--------->'dissector_add_unint' That will be right.

niuqg avatar Sep 17 '14 06:09 niuqg

dissector_add_uint

DavideSanvito avatar Oct 10 '14 09:10 DavideSanvito

I have the same problem after I substituted 'dissector_add' with 'dissector_add_unint'

ShawnLinLoveLife avatar Dec 22 '14 07:12 ShawnLinLoveLife

Try to substitute 'dissector_add' with 'dissector_add_uint', not with 'dissector_add_unint'

DavideSanvito avatar Dec 22 '14 11:12 DavideSanvito

Thank you very much! It works!

ShawnLinLoveLife avatar Dec 22 '14 12:12 ShawnLinLoveLife