]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-address.c
network: assume prefix length is full address size
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Jan 2023 09:21:34 +0000 (18:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Jan 2023 13:09:10 +0000 (22:09 +0900)
commite5e0743189797afc58cbfe0a742a2c66eb921dd5
tree9418d50c956223255b9b5d7e904a4db47eda8f11
parenta93cc5d911320b87150ac1ae89a999ceeb691e27
network: assume prefix length is full address size

The commit 0f707207b9fc04d45ad176930cfefc77c0068545 enables strong
warning about missing prefix length in Address= setting.
The change was done in v241, and was about 4 years ago.
Let's drop the legacy assumption and make the parser consistent with
'ip address' command.

C.f. #11307.
Closes #26102.
src/network/networkd-address.c
src/network/test-networkd-conf.c
test/test-network/conf/25-dhcp-client-ipv4-only.network