|
Description
|
As part of restructuring the code for CR 6464136, I managed to
reintroduce CR 6193247. The symptom is log messages that look like
this:
Jan 22 14:38:00 miraf /sbin/dhcpagent[1494]: [ID 981413 daemon.warning] configure_v4_lease: incorrect broadcast address 255.255.255.255 specified for eri0; ignoring
Jan 22 14:38:00 miraf /sbin/dhcpagent[1494]: [ID 947604 daemon.warning] checkaddr: expected peer address 24.236.254.255 on eri0, have 255.255.255.255
The problem is that in configure_v4_lease(), we correctly say that
we're going to ignore this bad address, but then we just go ahead and
use it. That's not right. Instead, we need to record the kernel's
sanitized version of the address -- that is, sin->sin_addr and not
inaddr.
|