Re: [Ryu-devel] Adding OpenFlow rules matching TCP

2015-04-20 Thread Srinath Ananthakrishnan
Thanks for your reply, Yamamoto. Thanks, Srinath On 4/19/15, 10:01 PM, "YAMAMOTO Takashi" wrote: >hi, > >> Hello, >> >> I知 new to openvswitch and ryu and am trying to write a simple flow >>matcher with openvswitch and ryu and I知 trying to match flows based on >>TCP 4 tuple. And the open fl

[Ryu-devel] Adding OpenFlow rules matching TCP

2015-04-17 Thread Srinath Ananthakrishnan
Hello, I’m new to openvswitch and ryu and am trying to write a simple flow matcher with openvswitch and ryu and I’m trying to match flows based on TCP 4 tuple. And the open flow version I’m using is 1.2. This is what my add_flow function looks like. def add_tcp_flow(self, dp, in_port, out_port

Re: [Ryu-devel] Adding OpenFlow rules matching TCP

2015-04-17 Thread Srinath Ananthakrishnan
Found this information from the OpenFlow spec. IPv4_dst and IPv4_src fields need the eth_type to be set as 0x800 and the tcp_src and tcp_dst fields require the ip_proto as 6. Thanks, Srinath From: Srinath Ananthakrishnana mailto:srinath.ananthakrish...@riverbed.com>> Date: Friday, April 17, 2