Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/dhcp/dist/server initialize the omapi subsystem...
details: https://anonhg.NetBSD.org/src/rev/7e51343c01ca
branches: trunk
changeset: 786074:7e51343c01ca
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 14 01:51:39 2013 +0000
description:
initialize the omapi subsystem early so we can allocate interfaces.
diffstat:
external/bsd/dhcp/dist/server/dhcpd.c | 29 ++++++++++++++---------------
1 files changed, 14 insertions(+), 15 deletions(-)
diffs (57 lines):
diff -r 52f816cffe1c -r 7e51343c01ca external/bsd/dhcp/dist/server/dhcpd.c
--- a/external/bsd/dhcp/dist/server/dhcpd.c Sat Apr 13 23:04:35 2013 +0000
+++ b/external/bsd/dhcp/dist/server/dhcpd.c Sun Apr 14 01:51:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dhcpd.c,v 1.2 2013/04/13 23:04:35 christos Exp $ */
+/* $NetBSD: dhcpd.c,v 1.3 2013/04/14 01:51:39 christos Exp $ */
/* dhcpd.c
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: dhcpd.c,v 1.2 2013/04/13 23:04:35 christos Exp $");
+__RCSID("$NetBSD: dhcpd.c,v 1.3 2013/04/14 01:51:39 christos Exp $");
static const char copyright[] =
"Copyright 2004-2013 Internet Systems Consortium.";
@@ -287,6 +287,18 @@
else if (fd != -1)
close(fd);
+ /* Initialize the omapi system. */
+ result = omapi_init ();
+ if (result != ISC_R_SUCCESS)
+ log_fatal ("Can't initialize OMAPI: %s",
+ isc_result_totext (result));
+
+ /* Set up the OMAPI wrappers for common objects. */
+ dhcp_db_objects_setup ();
+ /* Set up the OMAPI wrappers for various server database internal
+ objects. */
+ dhcp_common_objects_setup ();
+
/* Initially, log errors to stderr as well as to syslogd. */
openlog ("dhcpd", LOG_NDELAY, DHCPD_LOG_FACILITY);
@@ -489,19 +501,6 @@
/* Set up the client classification system. */
classification_setup ();
-
- /* Initialize the omapi system. */
- result = omapi_init ();
- if (result != ISC_R_SUCCESS)
- log_fatal ("Can't initialize OMAPI: %s",
- isc_result_totext (result));
-
- /* Set up the OMAPI wrappers for common objects. */
- dhcp_db_objects_setup ();
- /* Set up the OMAPI wrappers for various server database internal
- objects. */
- dhcp_common_objects_setup ();
-
#if defined (TRACING)
trace_init (set_time, MDL);
if (traceoutfile) {
Home |
Main Index |
Thread Index |
Old Index