Re: [ovs-dev] [PATCH 4/4] openflow: Support matching and modifying MPLS TTL field.

2016-03-07 Thread Ben Pfaff
On Mon, Mar 07, 2016 at 05:38:59PM -0800, Justin Pettit wrote: > > > On Mar 7, 2016, at 11:18 AM, Ben Pfaff wrote: > > > > +/* Modifies 'match' so that the MPLS TTL is wildcarded. */ > > +void > > +match_set_any_mpls_ttl(struct match *match, int idx) > > +{ > > +

Re: [ovs-dev] [PATCH 4/4] openflow: Support matching and modifying MPLS TTL field.

2016-03-07 Thread Justin Pettit
> On Mar 7, 2016, at 11:18 AM, Ben Pfaff wrote: > > +/* Modifies 'match' so that the MPLS TTL is wildcarded. */ > +void > +match_set_any_mpls_ttl(struct match *match, int idx) > +{ > +match->wc.masks.mpls_lse[idx] &= ~htonl(MPLS_TTL_MASK); > +flow_set_mpls_ttl(>flow, idx,