Hello,
I'm trying to have my controller recreate the L2 and L3 and then
attach the rest of a packet and send it out. Though, I'm getting
Malformed packet messages in wireshark for these packet out events so
I must be going wrong somewhere. I was hoping someone could point it
out.
Thanks,
(I'm only having ICMP traffic some though this section of code)
l3 = ipv4()
l3.dstip = packet.next.dstip
l3.srcip = packet.next.srcip
l3.protocol = packet.next.protocol
l3.set_payload(packet.next.next) # or l3.next =
packet.next.next
l3.checksum()
l2 = ethernet()
l2.set_payload(l3)
l2.dst = packet.dst
l2.src = packet.src
l2.type = packet.type
self.send_openflow_packet(dpid, l2.tostring() ,openflow.OFPP_FLOOD)
--
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel
843.425.9777
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org