diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2016-06-07 10:27:54 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-06-25 15:51:45 (GMT) |
commit | 9702bb14ffb237af7c430f4699ff97e4909f6e9a (patch) | |
tree | 0863fc36653b2214dea2e6ea82012aa7f587ae3e /lib/route/link.c | |
parent | a24319393ced15d611645fec6004284d96c042cd (diff) | |
download | libnl-9702bb14ffb237af7c430f4699ff97e4909f6e9a.zip libnl-9702bb14ffb237af7c430f4699ff97e4909f6e9a.tar.gz libnl-9702bb14ffb237af7c430f4699ff97e4909f6e9a.tar.bz2 |
pass flags through ->io_compare op
Currently rtnl_link_info_data_compare doesn't pass
flags (LOOSE_COMPARISON) to the ->io_compare op, so we cannot do a match
on only the attributes that are actually set in the filter object used
in a cache lookup via nl_cache_find().
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route/link.c')
-rw-r--r-- | lib/route/link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link.c b/lib/route/link.c index 1b4f94c..4f86b0e 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -1008,7 +1008,7 @@ static uint64_t link_compare(struct nl_object *_a, struct nl_object *_b, goto protinfo_mismatch; } - diff |= LINK_DIFF(LINKINFO, rtnl_link_info_data_compare(a, b) != 0); + diff |= LINK_DIFF(LINKINFO, rtnl_link_info_data_compare(a, b, flags) != 0); out: return diff; |