mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 14:30:09 +01:00
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 |
||
|---|---|---|
| .. | ||
| devlink | ||
| tests | ||
| wifi | ||
| wpan | ||
| meson.build | ||
| nm-linux-platform.c | ||
| nm-linux-platform.h | ||
| nm-netlink.c | ||
| nm-netlink.h | ||
| nm-platform-private.h | ||
| nm-platform-utils.c | ||
| nm-platform-utils.h | ||
| nm-platform.c | ||
| nm-platform.h | ||
| nmp-base.c | ||
| nmp-base.h | ||
| nmp-global-tracker.c | ||
| nmp-global-tracker.h | ||
| nmp-netns.c | ||
| nmp-netns.h | ||
| nmp-object.c | ||
| nmp-object.h | ||
| nmp-plobj.c | ||
| nmp-plobj.h | ||
| README.md | ||
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