Skip to content

Commit 524c035

Browse files
committed
netlink: specs: rt_addr: fix get multi command name
Command names should match C defines, codegens may depend on it. Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Fixes: 4f28037 ("selftests/net: Add selftest for IPv4 RTM_GETMULTICAST support") Reviewed-by: Donald Hunter <donald.hunter@gmail.com> Link: https://patch.msgid.link/20250403013706.2828322-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 0802c32 commit 524c035

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/netlink/specs/rt_addr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ operations:
169169
value: 20
170170
attributes: *ifaddr-all
171171
-
172-
name: getmaddrs
172+
name: getmulticast
173173
doc: Get / dump IPv4/IPv6 multicast addresses.
174174
attribute-set: addr-attrs
175175
fixed-header: ifaddrmsg

tools/testing/selftests/net/rtnetlink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def dump_mcaddr_check(rtnl: RtnlAddrFamily) -> None:
1212
At least the loopback interface should have this address.
1313
"""
1414

15-
addresses = rtnl.getmaddrs({"ifa-family": socket.AF_INET}, dump=True)
15+
addresses = rtnl.getmulticast({"ifa-family": socket.AF_INET}, dump=True)
1616

1717
all_host_multicasts = [
1818
addr for addr in addresses if addr['ifa-multicast'] == IPV4_ALL_HOSTS_MULTICAST

0 commit comments

Comments
 (0)