mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 01:49:35 +00:00
- Compliation warnings on GCC 4.3 relating to bootp source address
selection were repaired. [ISC-Bugs #18520]
This commit is contained in:
parent
8fbb55ff3f
commit
dd484ced0d
3
RELNOTES
3
RELNOTES
@ -133,6 +133,9 @@ work on other platforms. Please report any problems and suggested fixes to
|
||||
- A warning was added since the DHCPv6 processing software does not yet
|
||||
support class statements.
|
||||
|
||||
- Compliation warnings on GCC 4.3 relating to bootp source address
|
||||
selection were repaired.
|
||||
|
||||
Changes since 4.0.0 (new features)
|
||||
|
||||
- Added DHCPv6 rapid commit support.
|
||||
|
@ -351,8 +351,14 @@ void bootp (packet)
|
||||
hto.hlen = packet -> raw -> hlen + 1;
|
||||
memcpy (&hto.hbuf [1], packet -> raw -> chaddr, packet -> raw -> hlen);
|
||||
|
||||
if (packet->interface->address_count)
|
||||
if (packet->interface->address_count) {
|
||||
from = packet->interface->addresses[0];
|
||||
} else {
|
||||
log_error("%s: Interface %s appears to have no IPv4 "
|
||||
"addresses, and so dhcpd cannot select a source "
|
||||
"address.", msgbuf, packet->interface->name);
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Report what we're doing... */
|
||||
log_info ("%s", msgbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user