Version 2.2

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2006-03-27 00:00:00 +02:00
parent 61b6acf2f5
commit 658fe50312
14 changed files with 697 additions and 163 deletions

View file

@ -84,7 +84,7 @@ parse_config (void)
dhcpd_config = fopen (config.dhcpdconf_file, "r");
if (dhcpd_config == NULL)
{
eprintf ("%s:", config.dhcpdconf_file);
eprintf ("parse_config: %s:", config.dhcpdconf_file);
exit (EXIT_FAILURE);
}
@ -162,8 +162,7 @@ parse_config (void)
if (num_ranges > RANGES)
{
fprintf (stderr, "Range space full!\n");
fprintf (stderr, "Increase RANGES and recompile.\n");
eprintf ("parse_config: Range space full! Increase RANGES and recompile.");
exit (EXIT_FAILURE);
}
}
@ -173,9 +172,7 @@ parse_config (void)
linelen = strlen (line);
if (shared_name_p + linelen > last_shared)
{
fprintf (stderr, "Shared network name space full!\n");
fprintf (stderr,
"Increase SHARED_NETWORKS_NAMES and recompile\n");
eprintf ("parse_config: Shared network name space full! Increase SHARED_NETWORKS_NAMES and recompile.\n");
exit (EXIT_FAILURE);
}
@ -191,8 +188,7 @@ parse_config (void)
if (num_shared_networks > SHARED_NETWORKS)
{
fprintf (stderr, "Shared network space full!\n");
fprintf (stderr, "Increase SHARED_NETWORKS and recompile\n");
eprintf ("parse_config: Shared network space full! Increase SHARED_NETWORKS and recompile.\n");
exit (EXIT_FAILURE);
}
}
@ -215,7 +211,7 @@ parse_leases (void)
dhcpd_leases = fopen (config.dhcpdlease_file, "r");
if (dhcpd_leases == NULL)
{
eprintf ("%s:", config.dhcpdlease_file);
eprintf ("parse_leases: %s:", config.dhcpdlease_file);
exit (EXIT_FAILURE);
}
@ -226,7 +222,7 @@ parse_leases (void)
* to hear about that. */
if (stat (config.dhcpdlease_file, &lease_file_stats))
{
eprintf ("%s:", config.dhcpdlease_file);
eprintf ("parse_leases: %s:", config.dhcpdlease_file);
exit (EXIT_FAILURE);
}
leases =