]> www.infradead.org Git - users/hch/misc.git/commit
netlink: support dumping IPv4 multicast addresses
authorYuyang Huang <yuyanghuang@google.com>
Fri, 7 Feb 2025 11:08:35 +0000 (20:08 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Feb 2025 10:26:53 +0000 (11:26 +0100)
commiteb4e17a1d915d3c550e5a58c4bf370659dbe0dc8
tree052e433f75957d96defd70eed23a5a32eced37f1
parent67800d296191d0a9bde0a7776f99ca1ddfa0fc26
netlink: support dumping IPv4 multicast addresses

Extended RTM_GETMULTICAST to support dumping joined IPv4 multicast
addresses, in addition to the existing IPv6 functionality. This allows
userspace applications to retrieve both IPv4 and IPv6 multicast
addresses through similar netlink command and then monitor future
changes by registering to RTNLGRP_IPV4_MCADDR and RTNLGRP_IPV6_MCADDR.

Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Link: https://patch.msgid.link/20250207110836.2407224-1-yuyanghuang@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/devinet.c
net/ipv4/igmp.c
net/ipv4/igmp_internal.h [new file with mode: 0644]