intracom-telecom-sdn / oftraf

pcap-based, RESTful OpenFlow traffic monitor
Eclipse Public License 1.0
6 stars 1 forks source link

Line 142 issue #2

Closed panageo closed 8 years ago

panageo commented 8 years ago

On line 142 of oftraf.py -- tcp = eth.data.data -- sometimes we get an attribute error telling that str type do not have a data attribute. This means that the returned object of eth.data could be of type string in some cases and in this cases it does not have another data attribute. There must be an attribute check, before getting the data attribute value.