2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Set ABANDONED_LEASE flag when abandoning a lease.

This commit is contained in:
Ted Lemon
1997-03-06 19:28:18 +00:00
parent f4fb257d70
commit b0f9708dd0

View File

@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
"$Id: memory.c,v 1.26 1997/03/06 18:27:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
"$Id: memory.c,v 1.27 1997/03/06 19:28:18 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -635,7 +635,8 @@ void abandon_lease (lease, message)
lt = *lease;
lt.ends = 0xFFFFFFFF;
warn ("Abandoning IP address %s: %s\n",
lt.flags |= ABANDONED_LEASE;
warn ("Abandoning IP address %s: %s",
piaddr (lease -> ip_addr), message);
lt.hardware_addr.htype = -1;
lt.hardware_addr.hlen = 0;