Re: [pox-dev] Error in NATing

2013-09-04 Thread Amer
Thank you The error I have faced are: The order as what you have mentioned and the pkt.ethernet.IPTYPE command when I have fixed them everything is Ok Thanx Sent from my iPhone On ٠٤‏/٠٩‏/٢٠١٣, at ١١:١٩ م, Murphy McCauley wrote: > You're rewriting the packet AFTER you're outputting it, so b

Re: [pox-dev] Error in NATing

2013-09-04 Thread Murphy McCauley
You're rewriting the packet AFTER you're outputting it, so by the time you rewrite it, it has already been sent. -- Murphy On Sep 4, 2013, at 8:17 AM, AMER AL-GHADHBAN wrote: > Hello, > > I tried to perform NATing ith the following code, but it doesn't work; when i > ping i received the rep

[pox-dev] Error in NATing

2013-09-04 Thread AMER AL-GHADHBAN
Hello, I tried to perform NATing ith the following code, but it doesn't work; when i ping i received the reply from the old IP not from *dst='10.0.0.20'* msg = of.ofp_flow_mod() msg.idle_timeout = 100 msg.hard_timeout = 130 msg.match.dl_type = pkt.ethernet.IP_TYPE # i tried with