diff options
author | Patrick McHardy <kaber@trash.net> | 2010-04-07 19:17:42 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-04-19 12:42:40 +0200 |
commit | 82907257184f647353a9a993caaa1ebadaee2842 (patch) | |
tree | fe10b2a07a615f726bc41123119d3c15c8a41d0e | |
parent | ba1bd9050d0373239dfc400815e275d169dee415 (diff) | |
download | libnl-82907257184f647353a9a993caaa1ebadaee2842.tar.gz |
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.c | 2 |
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[] = { |