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 /include/netlink-private | |
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 'include/netlink-private')
-rw-r--r-- | include/netlink-private/route/link/api.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/netlink-private/route/link/api.h b/include/netlink-private/route/link/api.h index dedc921..1a793c8 100644 --- a/include/netlink-private/route/link/api.h +++ b/include/netlink-private/route/link/api.h @@ -62,7 +62,7 @@ struct rtnl_link_info_ops /** Called to compare link info parameters between two links. */ int (*io_compare)(struct rtnl_link *, struct rtnl_link *, - uint32_t attrs, int flags); + int flags); struct nl_list_head io_list; }; @@ -160,7 +160,8 @@ extern int rtnl_link_af_data_compare(struct rtnl_link *a, struct rtnl_link *b, int family); extern int rtnl_link_info_data_compare(struct rtnl_link *a, - struct rtnl_link *b); + struct rtnl_link *b, + int flags); #ifdef __cplusplus } |