From 82907257184f647353a9a993caaa1ebadaee2842 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Wed, 7 Apr 2010 19:17:42 +0200 Subject: [PATCH] neigh: fix id_attrs to include ifindex Neighbour entries for the same destination may exist on multiple interfaces. Include the interface in the ID attributes. Signed-off-by: Patrick McHardy --- lib/route/neigh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/route/neigh.c b/lib/route/neigh.c index 6998fac..d4dc82c 100644 --- a/lib/route/neigh.c +++ b/lib/route/neigh.c @@ -850,7 +850,7 @@ static struct nl_object_ops neigh_obj_ops = { }, .oo_compare = neigh_compare, .oo_attrs2str = neigh_attrs2str, - .oo_id_attrs = (NEIGH_ATTR_DST | NEIGH_ATTR_FAMILY), + .oo_id_attrs = (NEIGH_ATTR_IFINDEX | NEIGH_ATTR_DST | NEIGH_ATTR_FAMILY), }; static struct nl_af_group neigh_groups[] = {