mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Adjust call to allocate_lease().
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: bootp.c,v 1.61 2000/03/17 04:00:30 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: bootp.c,v 1.62 2000/05/03 22:57:42 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -68,6 +68,7 @@ void bootp (packet)
|
|||||||
struct option_cache *oc;
|
struct option_cache *oc;
|
||||||
char msgbuf [1024];
|
char msgbuf [1024];
|
||||||
int ignorep;
|
int ignorep;
|
||||||
|
int peer_has_leases = 0;
|
||||||
|
|
||||||
if (packet -> raw -> op != BOOTREQUEST)
|
if (packet -> raw -> op != BOOTREQUEST)
|
||||||
return;
|
return;
|
||||||
@@ -124,7 +125,8 @@ void bootp (packet)
|
|||||||
|
|
||||||
/* Otherwise, try to allocate one. */
|
/* Otherwise, try to allocate one. */
|
||||||
lease = allocate_lease (packet,
|
lease = allocate_lease (packet,
|
||||||
packet -> shared_network -> pools, 0);
|
packet -> shared_network -> pools, 0,
|
||||||
|
&peer_has_leases);
|
||||||
if (lease) {
|
if (lease) {
|
||||||
lease -> host = host;
|
lease -> host = host;
|
||||||
ack_lease (packet, lease, 0, 0, msgbuf, 0);
|
ack_lease (packet, lease, 0, 0, msgbuf, 0);
|
||||||
|
Reference in New Issue
Block a user