diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-08-15 19:01:49 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-27 21:24:07 +0200 |
commit | 876dc2b0141de38fdf7f1b02644b5f454c967f61 (patch) | |
tree | d550ec466ca3cf606fc8bc9ecc89a005d0d12bc9 | |
parent | 40af1088b582d8ec6fc73c76fc8548489f45d1a4 (diff) | |
download | systemd-876dc2b0141de38fdf7f1b02644b5f454c967f61.tar.gz |
network: dhcp6: logs only new address
Closes #16731.
-rw-r--r-- | src/network/networkd-dhcp6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c index d671284b00..d969995ea8 100644 --- a/src/network/networkd-dhcp6.c +++ b/src/network/networkd-dhcp6.c @@ -992,7 +992,8 @@ static int dhcp6_update_address( addr->cinfo.ifa_valid = lifetime_valid; (void) in_addr_to_string(addr->family, &addr->in_addr, &buffer); - log_link_info(link, "DHCPv6 address %s/%u timeout preferred %d valid %d", + log_link_full(link, set_contains(link->dhcp6_addresses, addr) ? LOG_DEBUG : LOG_INFO, 0, + "DHCPv6 address %s/%u timeout preferred %d valid %d", strna(buffer), addr->prefixlen, lifetime_preferred, lifetime_valid); r = address_configure(addr, link, dhcp6_address_handler, true, &ret); |