CPqD / ofdissector

Wireshark dissectors for OpenFlow versions 1.1, 1.2 and 1.3
Other
27 stars 24 forks source link

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

Open prashanthvarma opened 10 years ago

prashanthvarma commented 10 years ago

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.

niuqg commented 9 years ago

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

DavideSanvito commented 9 years ago

dissector_add_uint

ShawnLinLoveLife commented 9 years ago

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

DavideSanvito commented 9 years ago

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

ShawnLinLoveLife commented 9 years ago

Thank you very much! It works!