diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-10-30 22:08:39 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-11-20 10:15:33 (GMT) |
commit | d1c019024101687303eeed4c4e369a69ca90e739 (patch) | |
tree | 35cf24aedaea878dc4d989ae75f799da32afe539 /include | |
parent | acdeaf498d53d04ef4ca0e744b6c47e07e76c121 (diff) | |
download | libnl-d1c019024101687303eeed4c4e369a69ca90e739.zip libnl-d1c019024101687303eeed4c4e369a69ca90e739.tar.gz libnl-d1c019024101687303eeed4c4e369a69ca90e739.tar.bz2 |
route/link: add link info compare operation
Signed-off-by: Balki Raman <ramanb@cumulusnetworks.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-private/route/link/api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/netlink-private/route/link/api.h b/include/netlink-private/route/link/api.h index bb98ccc..85f83f3 100644 --- a/include/netlink-private/route/link/api.h +++ b/include/netlink-private/route/link/api.h @@ -60,6 +60,10 @@ struct rtnl_link_info_ops * in either io_alloc() or io_parse(). */ void (*io_free)(struct rtnl_link *); + /** Called to compare link info parameters between two links. */ + int (*io_compare)(struct rtnl_link *, struct rtnl_link *, + uint32_t attrs, int flags); + struct nl_list_head io_list; }; @@ -145,6 +149,8 @@ extern int rtnl_link_af_unregister(struct rtnl_link_af_ops *); 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); #ifdef __cplusplus } |