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]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
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

Reply via email to