]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.h
network: several cleanups for LinkOperationalState
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2024 16:01:32 +0000 (01:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2024 19:05:43 +0000 (04:05 +0900)
commit2278d9f66ead0b68acc75c09d27a7761bdee5fb3
tree2e413ee24c81a3d2ab6469c56a709aa7f868af48
parentba04f957fe1161a9b2c13ea9771bdb2e5e74fcee
network: several cleanups for LinkOperationalState

- introduce link_required_operstate_for_online() helper function,
- use recently introduced macros and helper functions,
- unconditionally serialize the minimum and maximum of required
  operational state.
src/network/networkd-link.c
src/network/networkd-link.h
src/network/networkd-state-file.c