[PATCH libnl 09/11] route: Add support for lwtunnel encapsulations
David Ahern
dsahern at gmail.com
Mon Aug 14 07:14:53 PDT 2017
On 8/14/17 3:49 AM, Thomas Haller wrote:
> Hi David,
>
>
>
> On Fri, 2017-06-30 at 10:48 -0600, David Ahern wrote:
>> Add framework to support lwtunnel encapsulations per nexthop.
>>
>
>>
>> +void nh_set_encap(struct rtnl_nexthop *nh, struct rtnl_nh_encap
>> *rtnh_encap)
>> +{
>> + if (nh->rtnh_encap) {
>> + if (nh->rtnh_encap->ops && nh->rtnh_encap->ops-
>>> destructor)
>> + nh->rtnh_encap->ops->destructor(nh-
>>> rtnh_encap->priv);
>
>
> I think it needs "free(nh->rtnh_encap->priv);"
> like in rtnl_route_nh_free().
>
I think so. Will fix.
More information about the libnl
mailing list