NetworkManager/src/libnm-systemd-core
Beniamino Galvani 4938507de8 dhcp6: fix accessor macro for t2
sd_dhcp6_lease_get_t2() was returning t1, and so sometimes the client
was going directly to the rebind state skipping the lease renewal.

See the systemd PR: https://github.com/systemd/systemd/pull/38275

Fixes: a14a033efb ('systemd: update code from upstream (2024-02-12)')
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2246
2025-07-23 11:00:13 +02:00
..
sd-adapt-core merge: branch 'systemd' into ff/fix_systemd 2024-03-04 18:19:25 +01:00
src dhcp6: fix accessor macro for t2 2025-07-23 11:00:13 +02:00
meson.build merge: branch 'systemd' into jv/systemd-merge 2025-06-02 10:00:31 +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 format: run nm-code-format 2024-10-04 11:07:35 +02:00
nm-sd.h lldp: use new libnm-lldp instead of systemd's sd_lldp_rx 2022-10-25 10:59:01 +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.