summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-04-07 19:17:42 +0200
committerThomas Graf <tgraf@suug.ch>2010-04-19 12:42:40 +0200
commit82907257184f647353a9a993caaa1ebadaee2842 (patch)
treefe10b2a07a615f726bc41123119d3c15c8a41d0e
parentba1bd9050d0373239dfc400815e275d169dee415 (diff)
downloadandroid_external_libnl-82907257184f647353a9a993caaa1ebadaee2842.tar.gz
android_external_libnl-82907257184f647353a9a993caaa1ebadaee2842.tar.bz2
android_external_libnl-82907257184f647353a9a993caaa1ebadaee2842.zip
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 <kaber@trash.net>
-rw-r--r--lib/route/neigh.c2
1 files changed, 1 insertions, 1 deletions
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[] = {