commit 6479911d5ca6dc303dba9ccb13f06c900bce6524 Author: Patrick McHardy Date: Mon Apr 5 16:08:04 2010 +0200 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 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[] = {