NetworkManager/src/libnm-systemd-core
Thomas Haller cd817cdf45
systemd: drop "nm-sd-utils-core.h" and nm_sd_utils_id128_get_machine()
This was only for unit testing, to check whether our reader
for "/etc/machine-id" agrees with systemd's.

That unit test was anyway flawed, because it actually accesses
the machine-id on the test system.

Anyway. Drop this. Most likely our parser is good enough, and
if we get a bug report with a defect, we can unit test against
that.

(cherry picked from commit 747d7dcfe3)
2022-05-18 08:47:19 +02:00
..
sd-adapt-core systemd: merge branch systemd into main 2021-08-02 09:25:02 +02:00
src systemd: merge branch systemd into main 2022-04-05 15:04:07 +02:00
meson.build systemd: drop "nm-sd-utils-core.h" and nm_sd_utils_id128_get_machine() 2022-05-18 08:47:19 +02:00
nm-default-systemd-core.h systemd: move "src/core/systemd" to "src/libnm-systemd-core" 2021-05-30 09:45:05 +02:00
nm-sd-utils-dhcp.c systemd: merge branch systemd into main 2022-04-05 15:04:07 +02:00
nm-sd-utils-dhcp.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-sd.c systemd: move "src/core/systemd" to "src/libnm-systemd-core" 2021-05-30 09:45:05 +02:00
nm-sd.h core: rework IP configuration in NetworkManager using layer 3 configuration 2021-11-18 16:21:29 +01:00
README.md systemd: describe import of systemd code in README.md 2022-04-04 21:33:06 +02:00

libnm-systemd-core

This is a fork of systemd source files that are compiled as a static library with network helpers.

We use systemd's DHCPv6 and LLDP library, by forking their code.

We also still use their DHCPv4 library, but that is about to be replaced by nettools' n-dhcp4 and not used unless you configure the undocumented [main].dhcp=systemd plugin.

This approach of code-reuse is very cumbersome, and we should replace systemd code by a proper library (like nettools).

We should not use systemd directly from our sources, beyond what we really need.

Reimport Upstream Code

Read here.