On Tue, 18 Feb 2014 07:17:00 +0000
Morgan Yang <[email protected]> wrote:

> Hi All:
> 
> Looking at the /ryu/ofproto/ofproto_v1_3.py, seems like its "unicast" mask of 
> "255.255.255.255" vs not?
> 
>         if self._wc.ft_test(ofproto_v1_3.OFPXMT_OFB_IPV4_SRC):
>             if self._wc.ipv4_src_mask == UINT32_MAX:
>                 header = ofproto_v1_3.OXM_OF_IPV4_SRC
>             else:
>                 header = ofproto_v1_3.OXM_OF_IPV4_SRC_W
>             self.append_field(header, self._flow.ipv4_src,
>                               self._wc.ipv4_src_mask)

If ipv4_src_mask is UINT32_MAX, OFPMatch generates on-wire ipv4_src
match format that doesn't include the mask.

> But the same questions goes for META_DATA, whats the difference there?
> 
> @OFPMatchField.register_field_header([ofproto_v1_3.OXM_OF_METADATA,
>                                       ofproto_v1_3.OXM_OF_METADATA_W])

It means that Metadata match supports a mask. For example, Eth_type
match class doesn't have _W.


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to