| 1 |
adx |
30 |
/* |
| 2 |
|
|
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
| 3 |
|
|
* m_info.h: A header for the information sent by /info |
| 4 |
|
|
* |
| 5 |
|
|
* Copyright (C) 2002 by the past and present ircd coders, and others. |
| 6 |
|
|
* |
| 7 |
|
|
* This program is free software; you can redistribute it and/or modify |
| 8 |
|
|
* it under the terms of the GNU General Public License as published by |
| 9 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
| 10 |
|
|
* (at your option) any later version. |
| 11 |
|
|
* |
| 12 |
|
|
* This program is distributed in the hope that it will be useful, |
| 13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
|
|
* GNU General Public License for more details. |
| 16 |
|
|
* |
| 17 |
|
|
* You should have received a copy of the GNU General Public License |
| 18 |
|
|
* along with this program; if not, write to the Free Software |
| 19 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
| 20 |
|
|
* USA |
| 21 |
|
|
* |
| 22 |
knight |
31 |
* $Id$ |
| 23 |
adx |
30 |
*/ |
| 24 |
|
|
|
| 25 |
|
|
#ifndef INCLUDED_m_info_h |
| 26 |
|
|
#define INCLUDED_m_info_h |
| 27 |
|
|
|
| 28 |
|
|
#include "setup.h" |
| 29 |
|
|
#include "defaults.h" |
| 30 |
|
|
|
| 31 |
|
|
typedef struct Information |
| 32 |
|
|
{ |
| 33 |
|
|
const char *name; /* name of item */ |
| 34 |
|
|
const char *strvalue; /* value of item if it's a boolean */ |
| 35 |
|
|
int intvalue; /* value of item if it's an integer */ |
| 36 |
|
|
const char *desc; /* short description of item */ |
| 37 |
|
|
} Info; |
| 38 |
|
|
|
| 39 |
|
|
Info MyInformation[] = { |
| 40 |
|
|
|
| 41 |
|
|
#ifdef CPATH |
| 42 |
|
|
{ "CPATH", CPATH, 0, "Path to Main Configuration File" }, |
| 43 |
|
|
#else |
| 44 |
|
|
{ "CPATH", "NONE", 0, "Path to Main Configuration File" }, |
| 45 |
|
|
#endif /* CPATH */ |
| 46 |
|
|
|
| 47 |
|
|
#ifdef DPATH |
| 48 |
|
|
{ "DPATH", DPATH, 0, "Directory Containing Configuration Files" }, |
| 49 |
|
|
#else |
| 50 |
|
|
{ "DPATH", "NONE", 0, "Directory Containing Configuration Files" }, |
| 51 |
|
|
#endif /* DPATH */ |
| 52 |
|
|
|
| 53 |
|
|
#ifdef DLPATH |
| 54 |
|
|
{ "DLPATH", DLPATH, 0, "Path to D-line File" }, |
| 55 |
|
|
#else |
| 56 |
|
|
{ "DLPATH", "NONE", 0, "Path to D-line File" }, |
| 57 |
|
|
#endif /* DLPATH */ |
| 58 |
|
|
|
| 59 |
|
|
#ifdef SOMAXCONN |
| 60 |
|
|
{ "HYBRID_SOMAXCONN", "", SOMAXCONN, "Maximum Queue Length of Pending Connections" }, |
| 61 |
|
|
#else |
| 62 |
|
|
{ "HYBRID_SOMAXCONN", "", HYBRID_SOMAXCONN, "Maximum Queue Length of Pending Connections" }, |
| 63 |
|
|
#endif /* SOMAXCONN */ |
| 64 |
|
|
|
| 65 |
|
|
/*#ifdef IPV6 |
| 66 |
|
|
{ "IPV6", "ON", 0, "IPv6 Support" }, |
| 67 |
|
|
#else |
| 68 |
|
|
{ "IPV6", "OFF", 0, "IPv6 Support" }, |
| 69 |
|
|
#endif |
| 70 |
|
|
*/ |
| 71 |
|
|
#ifdef KPATH |
| 72 |
|
|
{ "KPATH", KPATH, 0, "Path to K-line File" }, |
| 73 |
|
|
#else |
| 74 |
|
|
{ "KPATH", "NONE", 0, "Path to K-line File" }, |
| 75 |
|
|
#endif /* KPATH */ |
| 76 |
|
|
|
| 77 |
|
|
#ifdef LPATH |
| 78 |
|
|
{ "LPATH", LPATH, 0, "Path to Log File" }, |
| 79 |
|
|
#else |
| 80 |
|
|
{ "LPATH", "NONE", 0, "Path to Log File" }, |
| 81 |
|
|
#endif /* LPATH */ |
| 82 |
|
|
|
| 83 |
|
|
{ "MAX_BUFFER", "", MAX_BUFFER, "Maximum Buffer Connections Allowed" }, |
| 84 |
|
|
|
| 85 |
|
|
{ "MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT, "Anti SpamBot Parameter" }, |
| 86 |
|
|
|
| 87 |
|
|
{ "MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME, "Anti SpamBot Parameter" }, |
| 88 |
|
|
|
| 89 |
|
|
#ifdef MPATH |
| 90 |
|
|
{ "MPATH", MPATH, 0, "Path to MOTD File" }, |
| 91 |
|
|
#else |
| 92 |
|
|
{ "MPATH", "NONE", 0, "Path to MOTD File" }, |
| 93 |
|
|
#endif /* MPATH */ |
| 94 |
|
|
|
| 95 |
|
|
{ "NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH, "Size of WHOWAS Array" }, |
| 96 |
|
|
|
| 97 |
|
|
#ifdef OPATH |
| 98 |
|
|
{ "OPATH", OPATH, 0, "Path to Operator MOTD File" }, |
| 99 |
|
|
#else |
| 100 |
|
|
{ "OPATH", "NONE", 0, "Path to Operator MOTD File" }, |
| 101 |
|
|
#endif /* OPATH */ |
| 102 |
|
|
|
| 103 |
|
|
{ "OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN, "Anti SpamBot Parameter" }, |
| 104 |
|
|
|
| 105 |
|
|
#ifdef HAVE_LIBCRYPTO |
| 106 |
|
|
{ "HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support" }, |
| 107 |
|
|
#else |
| 108 |
|
|
{ "HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support" }, |
| 109 |
|
|
#endif /* HAVE_LIBCRYPTO */ |
| 110 |
|
|
|
| 111 |
|
|
#ifdef HAVE_LIBZ |
| 112 |
|
|
{ "HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support" }, |
| 113 |
|
|
#else |
| 114 |
|
|
{ "HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support" }, |
| 115 |
|
|
#endif /* HAVE_LIBZ */ |
| 116 |
|
|
|
| 117 |
|
|
#ifdef PPATH |
| 118 |
|
|
{ "PPATH", PPATH, 0, "Path to Pid File" }, |
| 119 |
|
|
#else |
| 120 |
|
|
{ "PPATH", "NONE", 0, "Path to Pid File" }, |
| 121 |
|
|
#endif /* PPATH */ |
| 122 |
|
|
|
| 123 |
|
|
{ "SELECT_TYPE", SELECT_TYPE, 0, "Method of Multiplexed I/O" }, |
| 124 |
|
|
|
| 125 |
|
|
#ifdef SPATH |
| 126 |
|
|
{ "SPATH", SPATH, 0, "Path to Server Executable" }, |
| 127 |
|
|
#else |
| 128 |
|
|
{ "SPATH", "NONE", 0, "Path to Server Executable" }, |
| 129 |
|
|
#endif /* SPATH */ |
| 130 |
|
|
|
| 131 |
|
|
{ "TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT, "Maximum Allowed TS Delta from another Server" }, |
| 132 |
|
|
{ "TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT, "Maximum TS Delta before Sending Warning" }, |
| 133 |
|
|
|
| 134 |
|
|
#ifdef USE_SYSLOG |
| 135 |
|
|
{ "USE_SYSLOG", "ON", 0, "Log Errors to syslog file" }, |
| 136 |
|
|
#else |
| 137 |
|
|
{ "USE_SYSLOG", "OFF", 0, "Log Errors to syslog file" }, |
| 138 |
|
|
#endif /* USE_SYSLOG */ |
| 139 |
|
|
|
| 140 |
|
|
/* since we don't want to include the world here, NULL probably |
| 141 |
|
|
* isn't defined by the time we read this, just use plain 0 instead |
| 142 |
|
|
* 0 is guaranteed by the language to be assignable to ALL built |
| 143 |
|
|
* in types with the correct results. |
| 144 |
|
|
*/ |
| 145 |
|
|
{ 0, 0, 0, 0 } |
| 146 |
|
|
}; |
| 147 |
|
|
|
| 148 |
|
|
#endif /* INCLUDED_m_info_h */ |