On Fri, 24 Feb 2017 21:29:16 +0000 surlyjake <[email protected]> wrote:
> Here you go. (although Iwase did the hard work). > > I'm following the 'CONTRIBUTING' guidelines which state not to use github > pull requests, but i notice that there are still quite a few pull requests > active there. Are github pull requests OK to use from now on? > > This defines the masks as in OVS, then specifies the different frag match > values for easy usage. > > diff --git a/ryu/ofproto/nicira_ext.py b/ryu/ofproto/nicira_ext.py > index 64b570fc..411ed48a 100644 > --- a/ryu/ofproto/nicira_ext.py > +++ b/ryu/ofproto/nicira_ext.py > @@ -277,6 +277,18 @@ NX_NAT_RANGE_IPV6_MAX = 1 << 3 > NX_NAT_RANGE_PROTO_MIN = 1 << 4 > NX_NAT_RANGE_PROTO_MAX = 1 << 5 > > +# nx ip_frag constants > +FLOW_NW_FRAG_ANY = 1 << 0 # Set for any IP frag. > +FLOW_NW_FRAG_LATER = 1 << 1 # Set for IP frag with nonzero offset. > +FLOW_NW_FRAG_MASK = FLOW_NW_FRAG_ANY | FLOW_NW_FRAG_LATER > + > +# nx ip_frag match values > +NXM_IP_FRAG_NO = (0, FLOW_NW_FRAG_MASK) > +NXM_IP_FRAG_YES = (FLOW_NW_FRAG_ANY, FLOW_NW_FRAG_ANY) > +NXM_IP_FRAG_FIRST = (FLOW_NW_FRAG_ANY, FLOW_NW_FRAG_MASK) > +NXM_IP_FRAG_LATER = (FLOW_NW_FRAG_LATER, FLOW_NW_FRAG_LATER) > +NXM_IP_FRAG_NOT_LATER = (0, FLOW_NW_FRAG_LATER) > + Applied, thanks! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
