]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/route-metric: manage uint32_t RTAX_XYZ attributes in the same way
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Jan 2024 01:36:41 +0000 (10:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Jan 2024 05:04:00 +0000 (14:04 +0900)
commitebf4fa1e82b71cb743518fa22dafb6860fd78bcf
treea9f0e4aa5967659bd3bbf1774f7bb2dc1851fa74
parentd32a520b095f7b795b37f32c059085c6d929bbc4
network/route-metric: manage uint32_t RTAX_XYZ attributes in the same way

Except for RTAX_CC_ALGO, all RTAX_XYZ attributes take uint32_t and
the kernel's default value is zero. So, let's unify handling of the
attributes.

This should not change any effective behavior. Just refactoring.
src/network/networkd-dhcp4.c
src/network/networkd-json.c
src/network/networkd-ndisc.c
src/network/networkd-route-metric.c
src/network/networkd-route-metric.h
src/network/networkd-route.c