Thank you for your reply.

>The megaflow match 0.0.0.0/2.0.0.0 checks for:
>       xxxx0xxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
But is there a typo?  why xxxx0xxx == 0/2 ?






At 2015-09-09 13:33:23, "Ben Pfaff" <b...@nicira.com> wrote:
>On Wed, Sep 09, 2015 at 10:47:14AM +0800, openvswitcher wrote:
>> I wonder why the installed megaflow is the one bellow:
>> 
>> 
>> > The installed megaflow i see is this:
>> > Megaflow: recirc_id=0,ip,in_port=2,dl_dst=fa:16:3e:e2:16:63,nw_dst=
>> > 0.0.0.0/2.0.0.0,nw_frag=no
>> Can  'nw_dst=0.0.0.0/2.0.0.0' matches any flow of which the prefix is 
>> 'network address: xxxxxx0x.xxxxxxxx.xxxxxxxx.xxxxxxxx
>> 'network mask: 00000010.00000000.00000000.00000000' ?
>
>The OpenFlow flows in question are 10.0.0.0/24, which matches:
>        00001010.00000000.00000000.xxxxxxxx
>and 10.0.0.1/32, which matches:
>        00001010.00000000.00000000.00000001
>The packet matched against them contains 8.8.8.8, which has the value:
>        00001000.00001000.00001000.00001000
>The megaflow match 0.0.0.0/2.0.0.0 checks for:
>        xxxx0xxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
>That makes sense because that single bit is sufficient to determine
>that the packet does not match either of the former OpenFlow flows.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to