Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

server_config.h File Reference

#include "config.h"

Go to the source code of this file.

Data Structures

struct  global_config
 This structure contains the main server's configuration. More...


Defines

#define FILE_NAME_SIZE   256
 Maximum number of characters for a file name.

#define HOST_NAME_MAX_SIZE   256
 Maximum number of characters for a host name (or IP address).

#define MAX_IP_ADDRESS_STR_SIZE   16
 Maximum number of characters for an IP address.

#define MAX_UID_SIZE   128
 Maximum number of characters for user ID.

#define MAX_GID_SIZE   128
 Maximum number of characters for group ID.

#define MAX_MANUFACTURER_ID_LIST_SIZE   1024
 Maximum number of characters for the list of manufacturer's IDs.

#define MAX_MANUFACTURER_ID_SIZE   128
 Maximum number of characters for a manufacturer's ID.


Functions

int configuration_load (char *path, char **error)
 Load the DHCP server configuration from a given file. More...


Detailed Description

Header file for the logging module 'server_config.c'.

Definition in file server_config.h.


Function Documentation

int configuration_load char *    path,
char **    error
 

Load the DHCP server configuration from a given file.

Author:
Denis BEURIVE
Parameters:
path  Pointer to a zero terminated string of characters that represents the path to the configuration file to load.
error  pointer to a pointer that will point to the error message if an error occured.
Returns:
Upon successful completion, the function returns the value 0. Otherwize, the function returns the value 1.

Definition at line 44 of file configuration.c.

References global_config::broadcast_mode, conf_get_last_error(), CONFIGURATION_ERROR_SIZE, global_config::csv_file, global_config::deamon_group_id, global_config::deamon_user_id, global_config::debug, global_config::debug_file, global_config::dhcp_bind_ip, global_config::dummy_ip, global_config::dumper_mode, FILE_NAME_SIZE, get_value(), HOST_NAME_MAX_SIZE, last_error, global_config::log_file, global_config::log_size_management, MAX_GID_SIZE, MAX_UID_SIZE, PARSE_CONFIGURATION_DLL_INVALID, PARSE_CONFIGURATION_DLL_OPEN_ERROR, PARSE_CONFIGURATION_DUPLICATED_TAG, parse_configuration_file(), PARSE_CONFIGURATION_FILE_NOT_FOUND, PARSE_CONFIGURATION_MODEM_CONF_NOT_VALID, PARSE_CONFIGURATION_NO_MEM, PARSE_CONFIGURATION_OK, PARSE_CONFIGURATION_SYNTAX_ERROR, global_config::pid_file, global_config::server_ip_seen_by_client, global_config::sql_expiration_security_delay, global_config::sync_dump, and global_config::working_dir.

Referenced by main().


Generated on Mon Jun 19 12:31:07 2006 for MyDhcp_V2 by doxygen1.2.15