From 7d23ed9f73abec2d6f5b760e094284d4a239931e Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 7 Jul 2025 09:38:45 +0200 Subject: [PATCH] platform: rename nm_linux_platform_get_link_fdb_table() Rename nm_linux_platform_get_link_fdb_table() to nm_linux_platform_get_bridge_fdb(). The new name better indicates that the function returns the bridge FDB entries. --- src/core/nm-bond-manager.c | 2 +- src/libnm-platform/nm-linux-platform.c | 2 +- src/libnm-platform/nm-linux-platform.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/nm-bond-manager.c b/src/core/nm-bond-manager.c index 116cb7374..a29ce679d 100644 --- a/src/core/nm-bond-manager.c +++ b/src/core/nm-bond-manager.c @@ -920,7 +920,7 @@ nm_bond_manager_send_arp(int bond_ifindex, int i; gs_free NMEtherAddr **fdb_addrs = NULL; - fdb_addrs = nm_linux_platform_get_link_fdb_table(platform, ifindexes, 2); + fdb_addrs = nm_linux_platform_get_bridge_fdb(platform, ifindexes, 2); /* we want to send a Reverse ARP (RARP) packet */ data.op = htons(ARP_OP_RARP); diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c index 2cc50f8f7..f796e53df 100644 --- a/src/libnm-platform/nm-linux-platform.c +++ b/src/libnm-platform/nm-linux-platform.c @@ -10519,7 +10519,7 @@ parse_fdb_cb(const struct nl_msg *msg, void *arg) } NMEtherAddr ** -nm_linux_platform_get_link_fdb_table(NMPlatform *platform, int *ifindexes, guint ifindexes_len) +nm_linux_platform_get_bridge_fdb(NMPlatform *platform, int *ifindexes, guint ifindexes_len) { int nle; struct nl_sock *sk = NULL; diff --git a/src/libnm-platform/nm-linux-platform.h b/src/libnm-platform/nm-linux-platform.h index 3f591b7f1..c7f1b17a2 100644 --- a/src/libnm-platform/nm-linux-platform.h +++ b/src/libnm-platform/nm-linux-platform.h @@ -26,7 +26,7 @@ GType nm_linux_platform_get_type(void); struct _NMDedupMultiIndex; NMEtherAddr ** -nm_linux_platform_get_link_fdb_table(NMPlatform *platform, int *ifindexes, guint ifindexes_len); +nm_linux_platform_get_bridge_fdb(NMPlatform *platform, int *ifindexes, guint ifindexes_len); NMPlatform *nm_linux_platform_new(struct _NMDedupMultiIndex *multi_idx, gboolean log_with_ptr,