On Thu, May 05, 2016 at 12:45:49AM +0200, ibrahim menem wrote: > Would it be interesting to have a "port to bitwise matches" conversion > functionality integrated to OVS command line utilities? something like : > > [ibra@ibrapc tutorial]$ ovs-ofctl port-range-to-masks 1000 1999 > 0x3e8/0xfff8 > 0x3f0/0xfff0 > 0x400/0xfe00 > 0x600/0xff00 > 0x700/0xff80 > 0x780/0xffc0 > 0x7c0/0xfff0 > > If it is interesting, do you suggest any cleaner place for it?
It's already available. Possibly it could use some improvement for double-ended ranges: blp@sigabrt:~/nicira/ovs/_build(0)$ echo 'ip4 && 1000 <= tcp.src <= 1999' | tests/ovstest test-ovn expr-to-flows tcp,tp_src=1001 tcp,tp_src=0x7c0/0xfff8 tcp,tp_src=1999 tcp,tp_src=1998 tcp,tp_src=0x7cc/0xfffe tcp,tp_src=0x3ea/0xfffe tcp,tp_src=0x700/0xff80 tcp,tp_src=0x780/0xffc0 tcp,tp_src=1000 tcp,tp_src=0x3ec/0xfffc tcp,tp_src=0x600/0xff00 tcp,tp_src=0x400/0xfe00 tcp,tp_src=0x7c8/0xfffc tcp,tp_src=0x3f0/0xfff0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev