<div dir="ltr"><div>Dear all, </div><div>I use this code </div><div> msg = of.ofp_packet_out(data = event.ofp) # send packet out by packetIn event</div><div> msg.actions.append(of.ofp_action_output(port = of.OFPP_IN_PORT)</div>
<div> event.connection.send(msg)</div><div>It works,</div><div>Thanks so much</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 12:46 AM, Peter Peresini <span dir="ltr"><<a href="mailto:peter.peresini@epfl.ch" target="_blank">peter.peresini@epfl.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Open flow requires you to use special ofpp_inport port number to send traffic back!</p>
<p dir="ltr">Peter<br>
(sent from android device)</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Apr 22, 2014 6:19 PM, "Chanthan Hel" <<a href="mailto:hel.chanthan65@gmail.com" target="_blank">hel.chanthan65@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Let me try,<div>Thx so much.<br><br>On Tuesday, April 22, 2014, Shiyao Ma <<a href="mailto:i@introo.me" target="_blank">i@introo.me</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">You may pastebin your sample code, or? an ofp_packet_out should do it.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-22 23:40 GMT+08:00 Chanthan Hel <span dir="ltr"><<a>hel.chanthan65@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div>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.</div>
<div>So, if i want to send that packet back to the incoming port, how can we do??</div><span><font color="#888888"><div>Chanthan<br clear="all"><div><br></div>-- <br>Mr. Chanthan Hel<br>Electrical engineering, Faculty of Engineering,<br>
Chulalongkorn University (CU)<br>
<br>*Phone: <a href="tel:%2B66%2081%20456%2084%2027" value="+66814568427" target="_blank">+66 81 456 84 27</a>*<br><br>
</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><br></div><div>$B8cGZ$OG-$G$"$k!#%[!<%`!<%Z!<%8$O(B<a href="http://introo.me" target="_blank">http://introo.me</a>$B!#(B<br></div></div>
</div>
</blockquote></div><br><br>-- <br>Mr. Chanthan Hel<br>Electrical engineering, Faculty of Engineering,<br>Chulalongkorn University (CU)<br><br>*Phone: <a href="tel:%2B66%2081%20456%2084%2027" value="+66814568427" target="_blank">+66 81 456 84 27</a>*<br>
<br><br>
</blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mr. Chanthan Hel<br>Electrical engineering, Faculty of Engineering,<br>Chulalongkorn University (CU)<br><br>*Phone: +66 81 456 84 27*<br><br>
</div>