]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Add support for dumping addresses for a specific device
authorDavid Ahern <dsahern@gmail.com>
Fri, 19 Oct 2018 19:45:30 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:33:29 +0000 (19:33 -0700)
commit90fe7028f2ad9fc398e508f27a1b4456c0ee1089
tree266dc6ae02e10fac338a693a94b7372375ba1af9
parente3bb980642dc7080ba6be0db2074cb3a2247bb5a
net/ipv6: Add support for dumping addresses for a specific device

If an RTM_GETADDR dump request has ifa_index set in the ifaddrmsg
header, then return only the addresses for that device.

Since inet6_dump_addr is reused for multicast and anycast addresses,
this adds support for device specfic dumps of RTM_GETMULTICAST and
RTM_GETANYCAST as well.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c