summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-08-15 19:01:49 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-27 21:24:07 +0200
commit876dc2b0141de38fdf7f1b02644b5f454c967f61 (patch)
treed550ec466ca3cf606fc8bc9ecc89a005d0d12bc9 /src
parent40af1088b582d8ec6fc73c76fc8548489f45d1a4 (diff)
downloadsystemd-876dc2b0141de38fdf7f1b02644b5f454c967f61.tar.gz
network: dhcp6: logs only new address
Closes #16731.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-dhcp6.c3
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);