CPqD / ofdissector

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

build error with updated debian 6 #4

Open sraihan opened 11 years ago

sraihan commented 11 years ago

root@debian-6:/home/user/ofdissector/src# scons install scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o util/FieldManager.os -c -fPIC -I. -I/usr/include/wireshark -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include util/FieldManager.cpp util/FieldManager.cpp: In member function 'void FieldManager::createField(std::string, const char, ftenum, int, const void, guint32, bool)': util/FieldManager.cpp:42: error: 'struct header_field_info' has no member named 'ref_type' util/FieldManager.cpp:42: error: 'HF_REF_TYPE_NONE' was not declared in this scope scons: *\ [util/FieldManager.os] Error 1 scons: building terminated because of errors.

rnudechu commented 11 years ago

Same problem occurs with Ubuntu 10.04

rnudechu commented 11 years ago

Looks like the problem mentioned above can be resolved by simply commenting out the offending line. The openflow.so file created looks like it works with dissecting openflow 1.3 traffic properly. (This is based on limited testing with trema-edge learning switch)

In FieldManager.cpp include two slash (//) at the beginning of line 42:

// hfri.hfinfo.ref_type = HF_REF_TYPE_NONE;