]> git.proxmox.com Git - mirror_iproute2.git/commit
ip address: Set device index in dump request
authorDavid Ahern <dsahern@gmail.com>
Wed, 19 Dec 2018 21:30:44 +0000 (13:30 -0800)
committerDavid Ahern <dsahern@gmail.com>
Thu, 27 Dec 2018 23:35:49 +0000 (15:35 -0800)
commit8847097850571f389ecb396bfabc359582a49fee
tree847921d326ac002243fba696027e0379c668f087
parent7ca9cee8d88b99e7b4039346f9e829f1b20c718a
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>
include/libnetlink.h
ip/ipaddress.c
lib/libnetlink.c