network: do not set broadcast if prefixlen is 31 or 32
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Dec 2020 10:19:06 +0000 (19:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Dec 2020 01:22:50 +0000 (10:22 +0900)
commitdf8aa086420e6ce61e32898b2bb7c88b87fd1c43
treea5678efe7577ed227b75683fe3b16e80ddd29b30
parent565147b7bb2156277a2efaccd920d3ca9c21f8a8
network: do not set broadcast if prefixlen is 31 or 32

After fe841414ef157f7f01d339c5d5730126e7b5fe0a, broadcast address is
also compared with existing one to determine whether the address is
foregin or not. So, the address object should not contain unnecessary
information.

Fixes #17803.
src/network/networkd-dhcp4.c