[PATCH libnl 06/11] route: Add support for ttl propagation in MPLS routes

David Ahern dsahern at gmail.com
Mon Aug 14 07:09:16 PDT 2017


On 8/14/17 3:28 AM, Thomas Haller wrote:
> On Fri, 2017-06-30 at 10:48 -0600, David Ahern wrote:
>> Add support for RTA_TTL_PROPAGATE attribute on a per-route basis.
>> Used to enable/disable TTL propagation at LSP egress.
>>
>> Signed-off-by: David Ahern <dsahern at gmail.com>
>>
> 
>> @@ -62,6 +62,7 @@
>>  #define ROUTE_ATTR_MULTIPATH 0x008000
>>  #define ROUTE_ATTR_REALMS    0x010000
>>  #define ROUTE_ATTR_CACHEINFO 0x020000
>> +#define ROUTE_ATTR_TTL_PROPAGATE 0x100000
> 
> is there a reason for the gap in the mask (not using 0x040000)?

poor eye sight? ;-) I don't recall; perhaps typing too fast. I can make
that 0x04.


> 
> 
>> diff --git a/libnl-route-3.sym b/libnl-route-3.sym
>> index bb2d6583b8bc..a8f67ad8471f 100644
>> --- a/libnl-route-3.sym
>> +++ b/libnl-route-3.sym
>> @@ -1057,4 +1057,5 @@ libnl_3_4 {
>>  	rtnl_route_nh_get_newdst;
>>  	rtnl_route_nh_set_via;
>>  	rtnl_route_nh_get_via;
>> +	rtnl_route_set_ttl_propagate;
>>  } libnl_3_2_29;
> 
> 
> there is no getter for the property, but ok. Fine with me.

I can add one for consistency.



More information about the libnl mailing list