X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fflow.c;h=967f26859a417a945ac66693b7b117ce4e8f6afc;hb=b676167a6f6f5bad24cf2a198c504d6e1cca080b;hp=397bda161835999f70ab464dbc6f41c05642e02b;hpb=67a2f47310dce03f49fa4dbd9daf5b1ae93ccc20;p=sliver-openvswitch.git diff --git a/lib/flow.c b/lib/flow.c index 397bda161..967f26859 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -848,6 +848,14 @@ flow_set_mpls_label(struct flow *flow, ovs_be32 label) set_mpls_lse_label(&flow->mpls_lse, label); } +/* Sets the MPLS TTL that 'flow' matches to 'ttl', which should be in the + * range 0...255. */ +void +flow_set_mpls_ttl(struct flow *flow, uint8_t ttl) +{ + set_mpls_lse_ttl(&flow->mpls_lse, ttl); +} + /* Sets the MPLS TC that 'flow' matches to 'tc', which should be in the * range 0...7. */ void