NetworkManager/src/libnm-platform
Fernando Fernandez Mancera ba3cff0ffd linux-platform: add helper function to query FDB table
The function introduced queries the FDB table via netlink socket. It
accepts a list of ifindexes to filter out the FDB content not related to
it. It returns an array of MAC addresses.

To cltarify this function is unusually exposed directly on
nm-linux-platform.h as we don't want this be part of the whole
NMPlatform object or cache. This, is an exception to the rule to
simplify the integration of this functionality on NetworkManager.

In addition, it also doesn't use the async mechanism that is widely used
on netlink communication across nm-linux-platform. Again, the reason is
to simplify its use, as async communication won't provide a benefit to
the use cases we have planned for this, i.e balance-slb RARP announcing.

(cherry picked from commit 00f47efcb2)
(cherry picked from commit 8af7493627)
2024-12-23 13:02:56 +01:00
..
devlink sriov: allow reading empty eswitch paramaters via Devlink 2024-02-21 11:27:36 +01:00
tests platform: add nmp_utils_bridge_normalized_vlans_equal() 2024-08-22 10:27:54 +02:00
wifi wifi: fix enumeration of 6 GHz channels from wiphy 2024-04-02 16:12:57 +02:00
wpan all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
meson.build platform: netlink: add devlink support 2024-02-21 11:27:28 +01:00
nm-linux-platform.c linux-platform: add helper function to query FDB table 2024-12-23 13:02:56 +01:00
nm-linux-platform.h linux-platform: add helper function to query FDB table 2024-12-23 13:02:56 +01:00
nm-netlink.c platform/netlink: use nm_random_get_bytes() for initial seq value 2024-04-17 08:30:46 +00:00
nm-netlink.h clang-format: reformat code with clang-format 16.0.2-1.fc38 2023-05-19 10:53:13 +02:00
nm-platform-private.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-platform-utils.c platform: add nmp_utils_bridge_normalized_vlans_equal() 2024-08-22 10:27:54 +02:00
nm-platform-utils.h platform: add nmp_utils_bridge_normalized_vlans_equal() 2024-08-22 10:27:54 +02:00
nm-platform.c format: run nm-code-format 2024-08-22 10:53:34 +02:00
nm-platform.h platform: add nmp_utils_bridge_normalized_vlans_equal() 2024-08-22 10:27:54 +02:00
nmp-base.c src: drop most slave references from the code 2024-08-09 16:53:17 +02:00
nmp-base.h platform: add nmp_utils_bridge_normalized_vlans_equal() 2024-08-22 10:27:54 +02:00
nmp-global-tracker.c all: use c_list_is_empty_or_single() where appropriate 2023-03-08 15:34:47 +01:00
nmp-global-tracker.h platform: introduce function to globally track local route rule 2023-02-21 15:36:38 +01:00
nmp-netns.c platform: avoid printing raw pointer values in log 2023-01-19 08:56:21 +01:00
nmp-netns.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmp-object.c src: drop most slave references from the code 2024-08-09 16:53:17 +02:00
nmp-object.h src: drop most slave references from the code 2024-08-09 16:53:17 +02:00
nmp-plobj.c all: use NM_MIN() instead of MIN() 2023-11-15 09:32:20 +01:00
nmp-plobj.h all: use NM_MIN_CONST()/NM_MAX_CONST() instead of MIN()/MAX() 2023-11-15 09:32:19 +01:00
README.md platform: support IPv6 mulitpath routes and fix cache inconsistency 2022-02-16 09:59:49 +01:00

libnm-platform

A static helper library that provides NMPlatform and other utils. This is NetworkManager's internal netlink library, but also contains helpers for sysfs, ethtool and other kernel APIs.

NMPlaform is also a cache of objects of the netlink API: NMPCache and NMPObject. These objects are used throughout NetworkManager also for generally tracking information about these types. For example, NMPlatformIP4Address (the public part of a certain type of NMPObject) is not only used to track platform addresses from netlink in the cache, but to track information about IPv4 addresses in general.

This depends on the following helper libraries