Hello, I was able to figure out where I was going wrong. I also needed to set the iplen field to the correct value in the ipv4 header.
Cheers, Aaron On Fri, Feb 25, 2011 at 5:21 PM, Aaron Rosen <aro...@clemson.edu> wrote: > 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 > -- 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