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 <peter.peres...@epfl.ch>wrote: > Open flow requires you to use special ofpp_inport port number to send > traffic back! > > Peter > (sent from android device) > On Apr 22, 2014 6:19 PM, "Chanthan Hel" <hel.chantha...@gmail.com> wrote: > >> 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.com>: >>> >>>> 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?? >>>> Chanthan >>>> >>>> -- >>>> Mr. Chanthan Hel >>>> Electrical engineering, Faculty of Engineering, >>>> Chulalongkorn University (CU) >>>> >>>> *Phone: +66 81 456 84 27* >>>> >>>> >>> >>> >>> -- >>> >>> 吾輩は猫である。ホームーページはhttp://introo.me。 >>> >> >> >> -- >> Mr. Chanthan Hel >> Electrical engineering, Faculty of Engineering, >> Chulalongkorn University (CU) >> >> *Phone: +66 81 456 84 27* >> >> >> -- Mr. Chanthan Hel Electrical engineering, Faculty of Engineering, Chulalongkorn University (CU) *Phone: +66 81 456 84 27*