/* Translate an interface index to the corresponding link name  */
char* rtnl_link_i2name(struct nl_cache *cache, int ifindex, char *dst, size_t len)
/* Translate an interface index to the corresponding link name  */
char* rtnl_link_i2name(struct nl_cache *cache, int ifindex, char *dst, size_t len)
{
	struct rtnl_link *link = rtnl_link_get(cache, ifindex);
	if (link) {
		strncpy(dst, link->l_name, len - 1);
		rtnl_link_put(link);
		return dst;
	}
	return NULL;
}