2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 13:57:50 +00:00

Allow DHCP leases to be assigned to the same client via Dynamic BOOTP

This commit is contained in:
Ted Lemon 1996-06-04 19:15:10 +00:00
parent 0fe8b9ccd3
commit fde59885f3
2 changed files with 8 additions and 12 deletions

10
bootp.c
View File

@ -115,18 +115,16 @@ void bootp (packet)
return;
}
/* If a lease has already been assigned through dynamic
BOOTP, and it's still okay to use dynamic bootp on
/* If a lease has already been assigned to this client
and it's still okay to use dynamic bootp on
that lease, reassign it. */
if (lease) {
if ((lease -> flags & BOOTP_LEASE) &&
(lease -> flags & DYNAMIC_BOOTP_OK)) {
if (lease -> flags & DYNAMIC_BOOTP_OK) {
lease -> host = host;
ack_lease (packet, lease, 0, 0);
return;
}
/* If the lease was acquired with DHCP, or
if dynamic BOOTP is no longer allowed for
/* If dynamic BOOTP is no longer allowed for
this lease, set it free. */
release_lease (lease);
}

View File

@ -115,18 +115,16 @@ void bootp (packet)
return;
}
/* If a lease has already been assigned through dynamic
BOOTP, and it's still okay to use dynamic bootp on
/* If a lease has already been assigned to this client
and it's still okay to use dynamic bootp on
that lease, reassign it. */
if (lease) {
if ((lease -> flags & BOOTP_LEASE) &&
(lease -> flags & DYNAMIC_BOOTP_OK)) {
if (lease -> flags & DYNAMIC_BOOTP_OK) {
lease -> host = host;
ack_lease (packet, lease, 0, 0);
return;
}
/* If the lease was acquired with DHCP, or
if dynamic BOOTP is no longer allowed for
/* If dynamic BOOTP is no longer allowed for
this lease, set it free. */
release_lease (lease);
}