]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-address.c
network/address: always set IFA_ADDRESS attribute for IPv6 address on configure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 09:07:46 +0000 (18:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 09:15:26 +0000 (18:15 +0900)
commitf35aecc4168ba99dc4319954593b2adc31c17c10
tree3c42423567d2f26149976c4f62e0e2855d5ad835
parentb8e898a681a7d8a663b766f8e44469bc910d20cc
network/address: always set IFA_ADDRESS attribute for IPv6 address on configure

IPv6 address can update the peer address without removing the address.
If an address have a peer, but now we want to drop the peer, we need to
specify a null address in IFA_ADDRESS attribute.

IPv4 address cannot update the peer address, so let's specify peer
address only when necessary.
src/network/networkd-address.c