Hi Aaron,
that might not be an issue at all, but I don't see in your code where
you set the ethernet headers (basically the src and dst) for the arp reply.
If you want, I have some code that I wrote a while back to send arp
replies, that seemed to work as expected. I can forward it along if this
is helpful.
--niky
On 2/16/11 2:59 PM, Aaron Rosen wrote:
Hello,
I'm trying to send arp replies from my nox controller though for some
reason my packets don't seem to be getting sent out and I was hoping
someone could point out where I'm going wrong. This is the code I
have:
if packet.type == ethernet.ARP_TYPE:
arppacket = arp.arp(packet.next.arr, packet.next.prev)
if arppacket.opcode == arppacket.REQUEST:
tmp_dst = arppacket.protodst
arppacket.protodst = arppacket.protosrc
arppacket.protosrc = tmp_dst
arppacket.hwdst = arppacket.hwsrc
arppacket.hwsrc = mac_to_int('\xd2\x85\xde\x8e\xf6\x13')
arppacket.opcode = arppacket.REPLY
packet.next = arppacket;
self.send_openflow(dpid, None, packet.arr,
openflow.OFPP_FLOOD, inport);
print "ARP REPLY SEND!!"
return CONTINUE
When I run tcpdump on the node that is sending the requests I does not
see any of these packets.
I'm trying to look at my openflow traffic with wireshark but for some
reason I'm not seeing any. Though at my controller I'm definitely
getting the packets. (I think this may because I'm using mininet? I've
tried all the interfaces on my machine in wireshark). Though when I
try this using the Openflow Tutorial provided VM i'm also not seeing
any 'of' packets in wireshark there? (Any idea why)?
Thanks,
Aaron
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org