NetworkManager/src/libnm-systemd-core
Thomas Haller 747d7dcfe3
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.
2022-04-20 12:07:04 +02:00
..
sd-adapt-core systemd: merge branch systemd into main 2021-08-02 09:25:02 +02:00
src dhcp/systemd: drop dhcp4 client (and related files) 2022-04-14 14:51:03 +02:00
meson.build systemd: drop "nm-sd-utils-core.h" and nm_sd_utils_id128_get_machine() 2022-04-20 12:07:04 +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.c dhcp: drop internal systemd DHCPv4 client 2022-04-14 14:51:02 +02:00
nm-sd.h dhcp/systemd: drop dhcp4 client (and related files) 2022-04-14 14:51:03 +02: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.