I think you can do it by using the 'set' action for the packet. Have you
tried it? It can modify the header fields and then you can take actions
after that.
On Fri, Mar 20, 2015 at 10:16 AM, Ruchika Luthra <
[email protected]> wrote:
> Did I make myself clear?
> Say a packet_in at the controller, I construct a reply packet, push it
> down to the switch + flow table rule is inserted so that if next time
> similar packet comes, it is handled by the switch on its own.
>
> On Fri, Mar 20, 2015 at 1:57 PM, Ruchika Luthra <
> [email protected]> wrote:
>
>> My aim to create a custom packet at the controller,push it down to
>> switch, where when some match criteria say X mtaches for incoming request,
>> this packet is sent out after some modifications as reply.
>>
>> On Fri, Mar 20, 2015 at 10:51 AM, YAMAMOTO Takashi <
>> [email protected]> wrote:
>>
>>> packet_out takes a list of actions.
>>> you can put your custom actions into the list.
>>>
>>> > By retaining at the switch, I mean I want to perform some custom
>>> actions on
>>> > the packet at the switch before forwarding it to the appropriate output
>>> > port .
>>> >
>>> > On Fri, Mar 20, 2015 at 9:57 AM, YAMAMOTO Takashi <
>>> [email protected]>
>>> > wrote:
>>> >
>>> >> hi,
>>> >>
>>> >> i'm not sure what you mean by "retain that packet at the switch".
>>> >>
>>> >> if you want the switch to evaluate the packet using its flow table,
>>> >> packet_out to OFPP_TABLE pseudo port should work.
>>> >>
>>> >> > Thank you for replying. I am able to create a custom packet using
>>> Scapy.
>>> >> > but as per my knowledge, packet_out event is used when we want to
>>> send
>>> >> the
>>> >> > custom packet out of any port of the switch. But I want to retain
>>> that
>>> >> > packet at the switch. Is there any way possible for that?
>>> >> >
>>> >> > On Wed, Mar 18, 2015 at 3:55 PM, Quamar Niyaz <
>>> >> [email protected]>
>>> >> > wrote:
>>> >> >
>>> >> >> Hello Ruchika,
>>> >> >> You can do it. You can use some tools like Scapy (python based
>>> tool) in
>>> >> >> the controller and create a custom packet and pushed it down to
>>> the soft
>>> >> >> switch using packet_out event message.
>>> >> >>
>>> >> >> On Wed, Mar 18, 2015 at 10:38 AM, Ruchika Luthra <
>>> >> >> [email protected]> wrote:
>>> >> >>
>>> >> >>> Hello,
>>> >> >>>
>>> >> >>> I want to create a custom packet(by specifying all the protocol
>>> header
>>> >> >>> and specific payload) in ryu controller and push it to down to
>>> soft
>>> >> switch.
>>> >> >>> Is it doable? If yes, what steps should I follow?
>>> >> >>>
>>> >> >>> Thank you
>>> >> >>>
>>> >> >>> Ruchika Luthra
>>> >> >>>
>>> >> >>> _______________________________________________
>>> >> >>> openflow-discuss mailing list
>>> >> >>> [email protected]
>>> >> >>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>>> >> >>>
>>> >> >>>
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> With regards,
>>> >> >> Quamar Niyaz
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >> > --
>>> >> > Ruchika Luthra
>>> >> > M.E (CS) 4th Sem
>>> >> > BITS Pilani
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Ruchika Luthra
>>> > M.E (CS) 4th Sem
>>> > BITS Pilani
>>>
>>
>>
>>
>> --
>> Ruchika Luthra
>> M.E (CS) 4th Sem
>> BITS Pilani
>>
>>
>
>
> --
> Ruchika Luthra
> M.E (CS) 4th Sem
> BITS Pilani
>
>
--
With regards,
Quamar Niyaz
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel