mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 18:07:25 +00:00
Add another empty hook for memory.c. Initialize the OMAPI explicitly.
This commit is contained in:
parent
8347b0bca7
commit
628beb0ecd
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char ocopyright[] =
|
static char ocopyright[] =
|
||||||
"$Id: dhclient.c,v 1.80 1999/07/31 17:50:41 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: dhclient.c,v 1.81 1999/09/09 21:00:05 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@ -78,6 +78,7 @@ int main (argc, argv, envp)
|
|||||||
int seed;
|
int seed;
|
||||||
int quiet = 0;
|
int quiet = 0;
|
||||||
char *server = (char *)0;
|
char *server = (char *)0;
|
||||||
|
isc_result_t status;
|
||||||
|
|
||||||
#ifdef SYSLOG_4_2
|
#ifdef SYSLOG_4_2
|
||||||
openlog ("dhclient", LOG_NDELAY);
|
openlog ("dhclient", LOG_NDELAY);
|
||||||
@ -184,6 +185,12 @@ int main (argc, argv, envp)
|
|||||||
#endif
|
#endif
|
||||||
inaddr_any.s_addr = INADDR_ANY;
|
inaddr_any.s_addr = INADDR_ANY;
|
||||||
|
|
||||||
|
/* Set up the OMAPI. */
|
||||||
|
status = omapi_init ();
|
||||||
|
if (status != ISC_R_SUCCESS)
|
||||||
|
log_fatal ("Can't initialize OMAPI: %s",
|
||||||
|
isc_result_totext (status));
|
||||||
|
|
||||||
/* Discover all the network interfaces. */
|
/* Discover all the network interfaces. */
|
||||||
discover_interfaces (DISCOVER_UNCONFIGURED);
|
discover_interfaces (DISCOVER_UNCONFIGURED);
|
||||||
|
|
||||||
@ -722,6 +729,12 @@ int write_lease (lease)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int write_host (host)
|
||||||
|
struct host_decl *host;
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void db_startup ()
|
void db_startup ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char ocopyright[] =
|
static char ocopyright[] =
|
||||||
"$Id: dhcrelay.c,v 1.33 1999/05/07 17:32:38 mellon Exp $ Copyright (c) 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: dhcrelay.c,v 1.34 1999/09/09 21:00:13 mellon Exp $ Copyright (c) 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@ -105,6 +105,7 @@ int main (argc, argv, envp)
|
|||||||
struct server_list *sp = (struct server_list *)0;
|
struct server_list *sp = (struct server_list *)0;
|
||||||
int no_daemon = 0;
|
int no_daemon = 0;
|
||||||
int quiet = 0;
|
int quiet = 0;
|
||||||
|
isc_result_t status;
|
||||||
|
|
||||||
#ifdef SYSLOG_4_2
|
#ifdef SYSLOG_4_2
|
||||||
openlog ("dhcrelay", LOG_NDELAY);
|
openlog ("dhcrelay", LOG_NDELAY);
|
||||||
@ -229,6 +230,12 @@ int main (argc, argv, envp)
|
|||||||
/* Get the current time... */
|
/* Get the current time... */
|
||||||
GET_TIME (&cur_time);
|
GET_TIME (&cur_time);
|
||||||
|
|
||||||
|
/* Set up the OMAPI. */
|
||||||
|
status = omapi_init ();
|
||||||
|
if (status != ISC_R_SUCCESS)
|
||||||
|
log_fatal ("Can't initialize OMAPI: %s",
|
||||||
|
isc_result_totext (status));
|
||||||
|
|
||||||
/* Discover all the network interfaces. */
|
/* Discover all the network interfaces. */
|
||||||
discover_interfaces (DISCOVER_RELAY);
|
discover_interfaces (DISCOVER_RELAY);
|
||||||
|
|
||||||
@ -422,6 +429,12 @@ int write_lease (lease)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int write_host (host)
|
||||||
|
struct host_decl *host;
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
int commit_leases ()
|
int commit_leases ()
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user