NULL link in address cache NL_ACT_DEL change event

Thomas Graf tgraf at suug.ch
Wed Dec 11 03:16:47 EST 2013


On 12/10/13 at 09:37am, Nicolas CARRIER wrote:
> 
> What I want to do is to retrieve the interface name, so (2) is perfectly ok for me.
> 
> But is this behavior normal ? Shouldn't information returned by
> rtnl_addr_get_ifindex and rtnl_addr_get_link be "the same" ?
> 
> Thank you in advance.

rtnl_addr_get_link() will only return a link object if it was
previously set by rtnl_addr_set_link(). The message parser
will do so _if_ a link cache has been provided through
nl_cache_mngt_provide().



More information about the libnl mailing list