Hello I was wondering if someone could explain where I'm going wrong here: I'm receiving a packet and then trying to send it back out with
self.send_openflow_packet(dpid, packet.tostring(),openflow.OFPP_FLOOD , inport) When I do this I'm getting the following exception: 00290|pyrt|ERR:unable to invoke a Python event handler: Traceback (most recent call last): File "./nox/lib/util.py", line 113, in f event.total_len, buffer_id, packet) File "./nox/coreapps/examples/aaronswitch.py", line 177, in packet_in_callback self.forward(dpid, inport, packet, packet.arr, bufid) File "./nox/coreapps/examples/aaronswitch.py", line 96, in forward self.send_openflow_packet(dpid, packet.tostring(),openflow.OFPP_FLOOD , inport) File "./nox/lib/packet/packet_base.py", line 114, in tostring return ''.join((buf, self.next.tostring())) File "./nox/lib/packet/packet_base.py", line 114, in tostring return ''.join((buf, self.next.tostring())) File "./nox/lib/packet/packet_base.py", line 109, in tostring buf = self.hdr() File "./nox/lib/packet/tcp.py", line 215, in hdr packet += option.to_bytes() File "./nox/lib/packet/tcp.py", line 70, in to_bytes return struct.pack('!BBH',self.type,4,self.val) TypeError: unsupported operand type(s) for &: 'tuple' and 'long' Thanks, Aaron -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel 843.425.9777
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org