[pox-dev] libopenflow length assertion problem
Tmusic
Tmusic987 at gmail.com
Sun Feb 3 11:59:52 PST 2013
Hi,
Recently I merged the betta branch back into my own code and noticed
something something broke with the new libopenflow.
When receiving a flow stats reply, the length assert in the unpacking
operation fails. It worked with the old libopenflow (before the major
changes).
Trace:
ERROR:openflow.of_01:Exception reading connection [00-00-00-00-00-01 1]
Traceback (most recent call last):
File
"/home/openflow/thesis_code_mercurial/OFcontroller/pox/openflow/of_01.py",
line 877, in run
if con.read() is False:
File
"/home/openflow/thesis_code_mercurial/OFcontroller/pox/openflow/of_01.py",
line 737, in read
new_offset,msg = unpackers[ofp_type](self.buf, offset)
File
"/home/openflow/thesis_code_mercurial/OFcontroller/pox/openflow/libopenflow_01.py",
line 181, in unpack_new
r,length = o.unpack(raw, offset)
File
"/home/openflow/thesis_code_mercurial/OFcontroller/pox/openflow/libopenflow_01.py",
line 2638, in unpack
assert length == len(self)
AssertionError
INFO:openflow.of_01:[00-00-00-00-00-01 1] closed
INFO:openflow.topology:Switch 1 disconnected
A check of the actual values delivers this result:
length
204
len(self)
14
Current version is 118edac42e4f78be6df358c8da1bc746ca54f776.
It worked with 85fd21d8bea25d933563530d901b055db697b327.
Any ideas?
Thank you in advance!
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/private.cgi/pox-dev-noxrepo.org/attachments/20130203/fdac0b01/attachment.htm>
More information about the pox-dev
mailing list