1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

Change DHCP_SYNC_LEASE messages from log_info to log_debug, they result

in quite a lot of noise in a typical dhcpd sync setup.

From Michał Markowski, ok florian
This commit is contained in:
sthen 2024-08-24 08:35:24 +00:00
parent 46c79823b8
commit 31e6f1a8e9

View File

@ -1,4 +1,4 @@
/* $OpenBSD: sync.c,v 1.24 2022/01/05 11:01:59 tb Exp $ */
/* $OpenBSD: sync.c,v 1.25 2024/08/24 08:35:24 sthen Exp $ */
/*
* Copyright (c) 2008 Bob Beck <beck@openbsd.org>
@ -307,7 +307,7 @@ sync_recv(void)
sizeof(lp->ip_addr));
memcpy(&lp->hardware_addr, &lv->lv_hardware_addr,
sizeof(lp->hardware_addr));
log_info("DHCP_SYNC_LEASE from %s for hw %s -> ip %s, "
log_debug("DHCP_SYNC_LEASE from %s for hw %s -> ip %s, "
"start %lld, end %lld",
inet_ntoa(addr.sin_addr),
print_hw_addr(lp->hardware_addr.htype,
@ -431,7 +431,7 @@ sync_lease(struct lease *lease)
memcpy(&lv.lv_ip_addr, &lease->ip_addr, sizeof(lv.lv_ip_addr));
memcpy(&lv.lv_hardware_addr, &lease->hardware_addr,
sizeof(lv.lv_hardware_addr));
log_info("sending DHCP_SYNC_LEASE for hw %s -> ip %s, start %d, "
log_debug("sending DHCP_SYNC_LEASE for hw %s -> ip %s, start %d, "
"end %d", print_hw_addr(lv.lv_hardware_addr.htype,
lv.lv_hardware_addr.hlen, lv.lv_hardware_addr.haddr),
piaddr(lease->ip_addr), ntohl(lv.lv_starts), ntohl(lv.lv_ends));