Skip to content

net: Add support for dumping addresses for a specific device

David Ahern netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net/ipv4: Move loop over addresses on a device into in_dev_dump_addrnet/ipv4/devinet.c+34 -150 replies
2/4net/ipv6: Remove ip_idx arg to in6_dump_addrsnet/ipv6/addrconf.c+6 -100 replies
3/4net/ipv4: Add support for dumping addresses for a specific devicenet/ipv4/devinet.c+23 -50 replies
4/4net/ipv6: Add support for dumping addresses for a specific devicenet/ipv6/addrconf.c+22 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] net: Add support for dumping addresses for a specific device

From: David Ahern <[email protected]>

Use the recently added kernel side filter infrastructure to add support for dumping addresses only for a specific device.

Patch 1 creates an IPv4 version similar to IPv6's in6_dump_addrs function.

Patch 2 simplifies in6_dump_addrs by moving index tracking of IP addresses from inet6_dump_addr to in6_dump_addrs.

Patches 3 and 4 use the device-based address dump helpers to limit a dump to just the addresses on a specific device.

David Ahern (4):
net/ipv4: Move loop over addresses in dumps into in_dev_dump_addr net/ipv6: Remove ip_idx arg to in6_dump_addrs net/ipv4: Add support for dumping addresses for a specific device net/ipv6: Add support for dumping addresses for a specific device

 net/ipv4/devinet.c  | 77 +++++++++++++++++++++++++++++++++++++++--------------
 net/ipv6/addrconf.c | 43 +++++++++++++++++++-----------
 2 files changed, 85 insertions(+), 35 deletions(-)
Signature · 1 line
2.11.0