]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix some past-os
authorTed Lemon <source@isc.org>
Mon, 30 Apr 2001 22:39:10 +0000 (22:39 +0000)
committerTed Lemon <source@isc.org>
Mon, 30 Apr 2001 22:39:10 +0000 (22:39 +0000)
server/omapi.c

index bd031b3138c27bb515beb063c1415f7586be32c9..8c7c67022bae589f08151618d48bd64b78e7eb6e 100644 (file)
@@ -50,7 +50,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: omapi.c,v 1.44 2001/04/05 22:54:57 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: omapi.c,v 1.45 2001/04/30 22:39:10 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -419,7 +419,7 @@ isc_result_t dhcp_lease_signal_handler (omapi_object_t *h,
        }
 
        /* Try to find some inner object that can take the value. */
-       if (h -> inner && h -> inner -> type -> get_value) {
+       if (h -> inner && h -> inner -> type -> signal_handler) {
                status = ((*(h -> inner -> type -> signal_handler))
                          (h -> inner, name, ap));
                if (status == ISC_R_SUCCESS)
@@ -580,6 +580,42 @@ isc_result_t dhcp_lease_stuff_values (omapi_object_t *c,
        if (status != ISC_R_SUCCESS)
                return status;
 
+       status = omapi_connection_put_name (c, "tstp");
+       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 -> tstp), sizeof (TIME)));
+       if (status != ISC_R_SUCCESS)
+               return status;
+
+       status = omapi_connection_put_name (c, "tsfp");
+       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 -> tsfp), sizeof (TIME)));
+       if (status != ISC_R_SUCCESS)
+               return status;
+
+       status = omapi_connection_put_name (c, "cltt");
+       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 -> cltt), 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))
@@ -1037,7 +1073,7 @@ isc_result_t dhcp_host_signal_handler (omapi_object_t *h,
        }
 
        /* Try to find some inner object that can take the value. */
-       if (h -> inner && h -> inner -> type -> get_value) {
+       if (h -> inner && h -> inner -> type -> signal_handler) {
                status = ((*(h -> inner -> type -> signal_handler))
                          (h -> inner, name, ap));
                if (status == ISC_R_SUCCESS)
@@ -1459,7 +1495,7 @@ isc_result_t dhcp_pool_signal_handler (omapi_object_t *h,
        /* Can't write pools yet. */
 
        /* Try to find some inner object that can take the value. */
-       if (h -> inner && h -> inner -> type -> get_value) {
+       if (h -> inner && h -> inner -> type -> signal_handler) {
                status = ((*(h -> inner -> type -> signal_handler))
                          (h -> inner, name, ap));
                if (status == ISC_R_SUCCESS)
@@ -1600,7 +1636,7 @@ isc_result_t dhcp_class_signal_handler (omapi_object_t *h,
        /* Can't write classs yet. */
 
        /* Try to find some inner object that can take the value. */
-       if (h -> inner && h -> inner -> type -> get_value) {
+       if (h -> inner && h -> inner -> type -> signal_handler) {
                status = ((*(h -> inner -> type -> signal_handler))
                          (h -> inner, name, ap));
                if (status == ISC_R_SUCCESS)
@@ -1742,7 +1778,7 @@ isc_result_t dhcp_subclass_signal_handler (omapi_object_t *h,
        /* Can't write subclasss yet. */
 
        /* Try to find some inner object that can take the value. */
-       if (h -> inner && h -> inner -> type -> get_value) {
+       if (h -> inner && h -> inner -> type -> signal_handler) {
                status = ((*(h -> inner -> type -> signal_handler))
                          (h -> inner, name, ap));
                if (status == ISC_R_SUCCESS)