2007-01-25 06:40:21 +00:00
|
|
|
/*
|
|
|
|
* ircd-ratbox: A slightly useful ircd.
|
|
|
|
* m_info.h: A header for the information sent by /info
|
|
|
|
*
|
|
|
|
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
|
|
|
|
* Copyright (C) 1996-2002 Hybrid Development Team
|
|
|
|
* Copyright (C) 2002-2004 ircd-ratbox development team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_m_info_h
|
|
|
|
#define INCLUDED_m_info_h
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
typedef struct Information {
|
|
|
|
const char *name; /* name of item */
|
|
|
|
const char *strvalue; /* value of item if it's a boolean */
|
|
|
|
int intvalue; /* value of item if it's an integer */
|
|
|
|
const char *desc; /* short description of item */
|
2007-01-25 06:40:21 +00:00
|
|
|
}
|
|
|
|
Info;
|
|
|
|
|
|
|
|
Info MyInformation[] = {
|
|
|
|
|
|
|
|
#ifdef CPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"CPATH", CPATH, 0, "Path to Main Configuration File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"CPATH", "NONE", 0, "Path to Main Configuration File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* CPATH */
|
|
|
|
|
|
|
|
#ifdef DPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"DPATH", DPATH, 0, "Directory Containing Configuration Files"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"DPATH", "NONE", 0, "Directory Containing Configuration Files"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* DPATH */
|
|
|
|
|
|
|
|
#ifdef HPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"HPATH", HPATH, 0, "Path to Operator Help Files"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"HPATH", "NONE", 0, "Path to Operator Help Files"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* HPATH */
|
|
|
|
|
|
|
|
#ifdef UHPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"UHPATH", UHPATH, 0, "Path to User Help Files"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"UHPATH", "NONE", 0, "Path to User Help Files"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* UH PATH */
|
|
|
|
|
|
|
|
#ifdef SOMAXCONN
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"RATBOX_SOMAXCONN", "", SOMAXCONN,
|
|
|
|
"Maximum Queue Length of Pending Connections"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"RATBOX_SOMAXCONN", "", RATBOX_SOMAXCONN,
|
|
|
|
"Maximum Queue Length of Pending Connections"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* SOMAXCONN */
|
|
|
|
|
2008-04-05 17:20:48 +00:00
|
|
|
#ifdef RB_IPV6
|
2014-08-03 17:38:55 +00:00
|
|
|
{"IPV6", "ON", 0, "IPv6 Support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"IPV6", "OFF", 0, "IPv6 Support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME,
|
|
|
|
"Anti SpamBot Parameter"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT,
|
|
|
|
"Nick Change Tracker for KILL"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
#ifdef LPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"LPATH", LPATH, 0, "Path to Log File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"LPATH", "NONE", 0, "Path to Log File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* LPATH */
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{"MAX_BUFFER", "", MAX_BUFFER, "Maximum Buffer Connections Allowed"},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT,
|
|
|
|
"Anti SpamBot Parameter"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME,
|
|
|
|
"Anti SpamBot Parameter"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
#ifdef MPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"MPATH", MPATH, 0, "Path to MOTD File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"MPATH", "NONE", 0, "Path to MOTD File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* MPATH */
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH,
|
|
|
|
"Size of WHOWAS Array"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
#ifdef OPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"OPATH", OPATH, 0, "Path to Operator MOTD File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"OPATH", "NONE", 0, "Path to Operator MOTD File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* OPATH */
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN,
|
|
|
|
"Anti SpamBot Parameter"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_LIBCRYPTO
|
2014-08-03 17:38:55 +00:00
|
|
|
{"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* HAVE_LIBCRYPTO */
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBZ
|
2014-08-03 17:38:55 +00:00
|
|
|
{"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* HAVE_LIBZ */
|
|
|
|
|
|
|
|
#ifdef PPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"PPATH", PPATH, 0, "Path to Pid File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"PPATH", "NONE", 0, "Path to Pid File"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* PPATH */
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{"SELECT_TYPE", SELECT_TYPE, 0, "Method of Multiplexed I/O"},
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
#ifdef SPATH
|
2014-08-03 17:38:55 +00:00
|
|
|
{"SPATH", SPATH, 0, "Path to Server Executable"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"SPATH", "NONE", 0, "Path to Server Executable"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif /* SPATH */
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
{
|
|
|
|
"TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT,
|
|
|
|
"Maximum Allowed TS Delta from another Server"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT,
|
|
|
|
"Maximum TS Delta before Sending Warning"
|
|
|
|
},
|
2007-01-25 06:40:21 +00:00
|
|
|
#ifdef USE_IODEBUG_HOOKS
|
2014-08-03 17:38:55 +00:00
|
|
|
{"USE_IODEBUG_HOOKS", "YES", 0, "IO Debugging support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#else
|
2014-08-03 17:38:55 +00:00
|
|
|
{"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
|
2007-01-25 06:40:21 +00:00
|
|
|
#endif
|
|
|
|
|
2014-08-03 17:38:55 +00:00
|
|
|
/*
|
|
|
|
* since we don't want to include the world here, NULL probably
|
|
|
|
* isn't defined by the time we read this, just use plain 0 instead
|
|
|
|
* 0 is guaranteed by the language to be assignable to ALL built
|
|
|
|
* in types with the correct results.
|
|
|
|
*/
|
|
|
|
{0, 0, 0, 0}
|
2007-01-25 06:40:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* INCLUDED_m_info_h */
|