along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: conf.c,v 1.9.4.53 2002/02/18 16:25:16 guus Exp $
+ $Id: conf.c,v 1.9.4.56 2002/06/08 12:57:09 guus Exp $
*/
#include "config.h"
if(!found)
return NULL;
- if(strcmp(found->variable, variable))
+ if(strcasecmp(found->variable, variable))
return NULL;
return found;
if(node->next)
{
found = (config_t *)node->next->data;
- if(!strcmp(found->variable, cfg->variable))
+ if(!strcasecmp(found->variable, cfg->variable))
return found;
}
}
/* Teach newbies what subnets are... */
- if(((subnet->type == SUBNET_IPV4) && maskcheck((char *)&subnet->net.ipv4.address, subnet->net.ipv4.masklength, sizeof(ipv4_t)))
- || ((subnet->type == SUBNET_IPV6) && maskcheck((char *)&subnet->net.ipv6.address, subnet->net.ipv6.masklength, sizeof(ipv6_t))))
+ if(((subnet->type == SUBNET_IPV4) && maskcheck(&subnet->net.ipv4.address, subnet->net.ipv4.prefixlength, sizeof(ipv4_t)))
+ || ((subnet->type == SUBNET_IPV6) && maskcheck(&subnet->net.ipv6.address, subnet->net.ipv6.prefixlength, sizeof(ipv6_t))))
{
- syslog(LOG_ERR, _("Network address and mask length do not match for configuration variable %s in %s line %d"),
+ syslog(LOG_ERR, _("Network address and prefix length do not match for configuration variable %s in %s line %d"),
cfg->variable, cfg->file, cfg->line);
free(subnet);
return 0;