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>
This commit is contained in:
parent
ba1bd9050d
commit
8290725718
1 changed files with 1 additions and 1 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue