]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
neigh: fix id_attrs to include ifindex
authorPatrick McHardy <kaber@trash.net>
Wed, 7 Apr 2010 17:17:42 +0000 (19:17 +0200)
committerThomas Graf <tgraf@suug.ch>
Mon, 19 Apr 2010 10:42:40 +0000 (12:42 +0200)
Neighbour entries for the same destination may exist on multiple
interfaces. Include the interface in the ID attributes.

Signed-off-by: Patrick McHardy <kaber@trash.net>
lib/route/neigh.c

index 6998fac670a5966264ec5ca2666b2e31fda6f75e..d4dc82c149e88c02e7fa24489c95198d96398a72 100644 (file)
@@ -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[] = {