summaryrefslogtreecommitdiffstats
path: root/include/libnetlink.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-12-19 13:30:44 -0800
committerDavid Ahern <dsahern@gmail.com>2018-12-27 15:35:49 -0800
commit8847097850571f389ecb396bfabc359582a49fee (patch)
tree847921d326ac002243fba696027e0379c668f087 /include/libnetlink.h
parent7ca9cee8d88b99e7b4039346f9e829f1b20c718a (diff)
ip address: Set device index in dump request
Add a filter function to rtnl_addrdump_req to set device index in the address dump request if the user is filtering addresses by device. In addition, add a new ipaddr_link_get to do a single RTM_GETLINK request instead of a device dump yet still store the data in the linfo list. Signed-off-by: David Ahern <dsahern@gmail.com>
Diffstat (limited to 'include/libnetlink.h')
-rw-r--r--include/libnetlink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libnetlink.h b/include/libnetlink.h
index b0051f39..2621bc99 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -49,7 +49,8 @@ void rtnl_close(struct rtnl_handle *rth);
typedef int (*req_filter_fn_t)(struct nlmsghdr *nlh, int reqlen);
-int rtnl_addrdump_req(struct rtnl_handle *rth, int family)
+int rtnl_addrdump_req(struct rtnl_handle *rth, int family,
+ req_filter_fn_t filter_fn)
__attribute__((warn_unused_result));
int rtnl_addrlbldump_req(struct rtnl_handle *rth, int family)
__attribute__((warn_unused_result));