#include "ircd_defs.h"
#include "sprintf_irc.h"
#include "common.h"
-#include "s_log.h"
+#include "logger.h"
#include "s_conf.h"
#include "s_user.h"
#include "s_newconf.h"
static void
conf_set_serverinfo_vhost6(void *data)
{
-#ifdef IPV6
+#ifdef RB_IPV6
if(inetpton(AF_INET6, (char *) data, &ServerInfo.ip6.sin6_addr) <= 0)
{
conf_report_error("Invalid netmask for server IPv6 vhost (%s)", (char *) data);
static void
conf_set_class_cidr_bitlen(void *data)
{
-#ifdef IPV6
+#ifdef RB_IPV6
unsigned int maxsize = 128;
#else
unsigned int maxsize = 32;
if(listener_address == NULL)
{
add_listener(args->v.number, listener_address, AF_INET);
-#ifdef IPV6
+#ifdef RB_IPV6
add_listener(args->v.number, listener_address, AF_INET6);
#endif
}
else
{
int family;
-#ifdef IPV6
+#ifdef RB_IPV6
if(strchr(listener_address, ':') != NULL)
family = AF_INET6;
else
if(strcasecmp(aft, "ipv4") == 0)
yy_server->aftype = AF_INET;
-#ifdef IPV6
+#ifdef RB_IPV6
else if(strcasecmp(aft, "ipv6") == 0)
yy_server->aftype = AF_INET6;
#endif
{ "vhost", CF_QSTRING, conf_set_serverinfo_vhost, 0, NULL },
{ "vhost6", CF_QSTRING, conf_set_serverinfo_vhost6, 0, NULL },
- { "max_clients", CF_INT, NULL, 0, &ServerInfo.max_clients },
+ { "default_max_clients",CF_INT, NULL, 0, &ServerInfo.default_max_clients },
{ "\0", 0, NULL, 0, NULL }
};