/* Look up class by its handle in the provided cache  */
struct rtnl_class* rtnl_class_get(struct nl_cache *cache, int ifindex, uint32_t handle)
/* Look up class by its handle in the provided cache  */
struct rtnl_class* rtnl_class_get(struct nl_cache *cache, int ifindex, uint32_t handle)
{
	struct rtnl_class *class;
	if (cache->c_ops != &rtnl_class_ops)
		return NULL;
	nl_list_for_each_entry(class, &cache->c_items, ce_list) {
		if (class->c_handle == handle && class->c_ifindex == ifindex) {
			nl_object_get((struct nl_object *) class);
			return class;
		}
	}
	return NULL;
}