]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/routing-policy-rule: use int32_t for suppress_prefixlen
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 17 Aug 2024 11:13:12 +0000 (20:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Aug 2024 17:21:21 +0000 (02:21 +0900)
commit933448defeff377c64ec6104917e388dab9a2177
tree9e6c654ea1980aac0d326e6ef221553c5fc96abe
parent0a3a3a2a1eb4d839971100cd4639ae98b4aa014c
network/routing-policy-rule: use int32_t for suppress_prefixlen

The kernel parses FRA_SUPPRESS_PREFIXLEN as uint32_t, but internally
handled as signed integer and negative values as unset. Let's explicitly
specify the size of the variable.

No functional change, just refactoring.
src/basic/parse-util.c
src/basic/parse-util.h
src/network/networkd-routing-policy-rule.h