[pox-dev] Send packet back to input port of switch
Chanthan Hel
hel.chanthan65 at gmail.com
Tue Apr 22 20:50:02 PDT 2014
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.peresini at 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.chanthan65 at gmail.com> wrote:
>
>> Let me try,
>> Thx so much.
>>
>> On Tuesday, April 22, 2014, Shiyao Ma <i at 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.chanthan65 at 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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20140423/3163a796/attachment-0002.htm>
More information about the pox-dev
mailing list