2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Send lease start and end time (Brian Murrell).

This commit is contained in:
Ted Lemon
1999-10-15 12:34:18 +00:00
parent c7775a73f6
commit 0d124b6664

View File

@@ -29,7 +29,7 @@
#ifndef lint
static char copyright[] =
"$Id: omapi.c,v 1.17 1999/10/14 18:30:52 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
"$Id: omapi.c,v 1.18 1999/10/15 12:34:18 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -488,6 +488,30 @@ isc_result_t dhcp_lease_stuff_values (omapi_object_t *c,
if (status != ISC_R_SUCCESS)
return status;
status = omapi_connection_put_name (c, "ends");
if (status != ISC_R_SUCCESS)
return status;
status = omapi_connection_put_uint32 (c, sizeof (TIME));
if (status != ISC_R_SUCCESS)
return status;
status = (omapi_connection_copyin
(c, (const unsigned char *)&(lease -> ends), sizeof(TIME)));
if (status != ISC_R_SUCCESS)
return status;
status = omapi_connection_put_name (c, "starts");
if (status != ISC_R_SUCCESS)
return status;
status = omapi_connection_put_uint32 (c, sizeof (TIME));
if (status != ISC_R_SUCCESS)
return status;
status = (omapi_connection_copyin
(c,
(const unsigned char *)&(lease -> starts), sizeof (TIME)));
if (status != ISC_R_SUCCESS)
return status;
/* Write out the inner object, if any. */
if (h -> inner && h -> inner -> type -> stuff_values) {
status = ((*(h -> inner -> type -> stuff_values))