]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add initializer arg to object type setup calls.
authorTed Lemon <source@isc.org>
Tue, 10 Oct 2000 22:05:53 +0000 (22:05 +0000)
committerTed Lemon <source@isc.org>
Tue, 10 Oct 2000 22:05:53 +0000 (22:05 +0000)
common/comapi.c
common/conflex.c

index 0375e0ba9b2dfabcaaa3f0f25916f8c09c4c3eaf..ff95f1c28e6ce4309b77a19bf27b8a4981529ec2 100644 (file)
@@ -50,7 +50,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: comapi.c,v 1.5 2000/08/08 18:07:16 neild Exp $ Copyright (c) 1999-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: comapi.c,v 1.6 2000/10/10 22:04:31 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -77,7 +77,7 @@ void dhcp_common_objects_setup ()
                                             dhcp_group_lookup, 
                                             dhcp_group_create,
                                             dhcp_group_remove, 0, 0, 0,
-                                            sizeof (struct group_object));
+                                            sizeof (struct group_object), 0);
        if (status != ISC_R_SUCCESS)
                log_fatal ("Can't register group object type: %s",
                           isc_result_totext (status));
@@ -92,7 +92,7 @@ void dhcp_common_objects_setup ()
                                             dhcp_subnet_lookup, 
                                             dhcp_subnet_create,
                                             dhcp_subnet_remove, 0, 0, 0,
-                                            sizeof (struct subnet));
+                                            sizeof (struct subnet), 0);
        if (status != ISC_R_SUCCESS)
                log_fatal ("Can't register subnet object type: %s",
                           isc_result_totext (status));
@@ -108,7 +108,7 @@ void dhcp_common_objects_setup ()
                 dhcp_shared_network_lookup, 
                 dhcp_shared_network_create,
                 dhcp_shared_network_remove, 0, 0, 0,
-                sizeof (struct shared_network));
+                sizeof (struct shared_network), 0);
        if (status != ISC_R_SUCCESS)
                log_fatal ("Can't register shared network object type: %s",
                           isc_result_totext (status));
@@ -124,7 +124,8 @@ void dhcp_common_objects_setup ()
                                             dhcp_interface_create,
                                             dhcp_interface_remove,
                                             0, 0, 0,
-                                            sizeof (struct interface_info));
+                                            sizeof (struct interface_info),
+                                            0);
        if (status != ISC_R_SUCCESS)
                log_fatal ("Can't register interface object type: %s",
                           isc_result_totext (status));
index 7eba98a9662e7e5660ea455eb890c9fd7fdf356f..5b30702834c6c11fe3614ea4184c0f504479b993 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.81 2000/08/31 04:36:34 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.82 2000/10/10 22:05:53 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -647,6 +647,8 @@ static enum dhcp_token intern (atom, dfv)
                        return ERROR;
                if (!strcasecmp (atom + 1, "val"))
                        return EVAL;
+               if (!strcasecmp (atom + 1, "ncapsulate"))
+                       return ENCAPSULATE;
                break;
              case 'f':
                if (!strcasecmp (atom + 1, "atal"))
@@ -1000,6 +1002,8 @@ static enum dhcp_token intern (atom, dfv)
              case 'v':
                if (!strcasecmp (atom + 1, "endor-class"))
                        return VENDOR_CLASS;
+               if (!strcasecmp (atom + 1, "endor"))
+                       return VENDOR;
                break;
              case 'w':
                if (!strcasecmp (atom + 1, "ith"))