/* Look up a neighbour by interface index and destination address  */
struct rtnl_neigh* rtnl_neigh_get(struct nl_cache *cache, int ifindex, struct nl_addr *dst)
/* Look up a neighbour by interface index and destination address  */
struct rtnl_neigh* rtnl_neigh_get(struct nl_cache *cache, int ifindex, struct nl_addr *dst)
{
	struct rtnl_neigh *neigh;
	nl_list_for_each_entry(neigh, &cache->c_items, ce_list) {
		if (neigh->n_ifindex == ifindex &&
		    !nl_addr_cmp(neigh->n_dst, dst)) {
			nl_object_get((struct nl_object *) neigh);
			return neigh;
		}
	}
	return NULL;
}