Hi Vinay, On 2014年11月20日 11:46, vinay pai wrote: > Hi Yusuke, > > Thanks for the response! > > Yes that helps but what I was aiming at was if packet_in has source UDP port > is (say) 500, I was to push a flow for source UDP port 500-599. In other > words if I get a packet in with source UDP port x, I want to install a flow > for x to x+99. In short wildcard mask of 100. Is this possible with Ryu?
In OpenFlow Spec1.3.4, the match field of TCP/UDP source/destination port is not maskable. So, I think it's impossible to install matching for port x to x+99 as "one" flow. Maybe 100 flows are needed for your porpse, I guess. Thanks. > > Regards, > > Vinay Pai B.H. > > On Wed, Nov 19, 2014 at 6:28 PM, Yusuke Iwase <[email protected] > <mailto:[email protected]>> wrote: > > Hi, > > On 2014年11月20日 09:45, vinay pai wrote: > > Hi, > > > > How do I use wildcard for UDP source/destination port? I can see from > the archives that in order to use for Source/Destination IP as follows: > > > > match = parser.OFPMatch(ipv4_dst=('10.0.0.0', '255.255.255.0'), > eth_type=0x0800) > > > > For a normal match on UDP source and destination port: > > > > match = parser.OFPMatch(ipv4_dst='10.10.10.10', eth_type=0x0800, > ip_proto=17, udp_src = 520) > > > > If I want to wildcard the source port in this tuple, What is the > approach? > > How about this? > Just delete "udp_src" description. > > match = parser.OFPMatch(ipv4_dst='10.10.10.10', eth_type=0x0800, > ip_proto=17) > > This flow matches UDP packet whose destination address is '10.10.10.10', > and UDP source/destination port is wildcarded. > > > Thanks > > > > > Regards, > > > > Vinay Pai B.H. > > > > -- > > Vinay Pai B.H. > > Grad Student - Computer Science > > Viterbi School of Engineering > > University of Southern California > > Los Angeles, CA, USA > > > > > > > ------------------------------------------------------------------------------ > > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > > with Interactivity, Sharing, Native Excel Exports, App Integration & > more > > Get technology previously reserved for billion-dollar corporations, FREE > > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > Ryu-devel mailing list > > [email protected] <mailto:[email protected]> > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > > > > > > -- > Vinay Pai B.H. > Grad Student - Computer Science > Viterbi School of Engineering > University of Southern California > Los Angeles, CA, USA ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
