[pox-dev] Send packet back to input port of switch

2014-04-22 Thread Chanthan Hel
Dear all, As I know and according to my testing, when the ofswitch receive packet then controller does action on that packet and want to send it back to the incoming port, it always fails, we can not send packet back. So, if i want to send that packet back to the incoming port, how can we do??

Re: [pox-dev] Send packet back to input port of switch

2014-04-22 Thread Chanthan Hel
Let me try, Thx so much. On Tuesday, April 22, 2014, Shiyao Ma i...@introo.me wrote: You may pastebin your sample code, or? an ofp_packet_out should do it. 2014-04-22 23:40 GMT+08:00 Chanthan Hel hel.chantha...@gmail.comjavascript:_e(%7B%7D,'cvml','hel.chantha...@gmail.com'); : Dear

Re: [pox-dev] Send packet back to input port of switch

2014-04-22 Thread Chanthan Hel
Dear all, I use this code msg = of.ofp_packet_out(data = event.ofp) # send packet out by packetIn event msg.actions.append(of.ofp_action_output(port = of.OFPP_IN_PORT) event.connection.send(msg) It works, Thanks so much On Wed, Apr 23, 2014 at 12:46 AM, Peter Peresini