]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-address.c
network: set broadcast address on request
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Feb 2022 22:07:02 +0000 (07:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Feb 2022 22:07:04 +0000 (07:07 +0900)
commite680486d6f00564db5fa304bbfe4d38389277eb4
tree100803e4b8289f375503c3db74f4c69d1669caec
parent5d0030310c134a016321ad8cf0b4ede8b1800d84
network: set broadcast address on request

Previously, the broadcast address was set to a Address object in
address_section_verify() (or address_acquire()). But, for wireguard
interfaces, we do not use the broadcast address. The .network file may
be assigned to multiple interfaces, hence, we cannot determine if we
should set the broadcast address in address_section_verify().

This makes the broadcast address set in link_request_address().
Then, we set the broadcast address only when we need it.
src/network/networkd-address.c
src/network/networkd-address.h
src/network/networkd-dhcp-server.c
src/network/networkd-ipv4ll.c