Commit e94ad0fa authored by Simon Kelley's avatar Simon Kelley

Suppress useless warning about DHCP packets of interfaces without addresses.

This only makes sense for interfaces which we're configured to listen on.
Thanks to Andrew Shadura for bug report.
parent 396750ce
......@@ -280,7 +280,8 @@ void dhcp_packet(time_t now, int pxe_fd)
iface_addr = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr;
else
{
my_syslog(MS_DHCP | LOG_WARNING, _("DHCP packet received on %s which has no address"), ifr.ifr_name);
if (iface_check(AF_INET, NULL, ifr.ifr_name, NULL))
my_syslog(MS_DHCP | LOG_WARNING, _("DHCP packet received on %s which has no address"), ifr.ifr_name);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment