/[svn]/ircd-hybrid-8/include/m_info.h
ViewVC logotype

Contents of /ircd-hybrid-8/include/m_info.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1302 - (show annotations)
Wed Mar 21 17:48:54 2012 UTC (8 years, 4 months ago) by michael
File MIME type: text/x-csrc
File size: 4207 byte(s)
- remove servlink in preparation for tls links/compression

1 /*
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 * $Id$
23 */
24
25 #ifndef INCLUDED_m_info_h
26 #define INCLUDED_m_info_h
27
28 #include "config.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 PPATH
112 { "PPATH", PPATH, 0, "Path to Pid File" },
113 #else
114 { "PPATH", "NONE", 0, "Path to Pid File" },
115 #endif /* PPATH */
116
117 { "SELECT_TYPE", "This needs to be done another way XXX TODO", 0, "Method of Multiplexed I/O" },
118
119 #ifdef SPATH
120 { "SPATH", SPATH, 0, "Path to Server Executable" },
121 #else
122 { "SPATH", "NONE", 0, "Path to Server Executable" },
123 #endif /* SPATH */
124
125 { "TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT, "Maximum Allowed TS Delta from another Server" },
126 { "TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT, "Maximum TS Delta before Sending Warning" },
127
128 /* since we don't want to include the world here, NULL probably
129 * isn't defined by the time we read this, just use plain 0 instead
130 * 0 is guaranteed by the language to be assignable to ALL built
131 * in types with the correct results.
132 */
133 { 0, 0, 0, 0 }
134 };
135
136 #endif /* INCLUDED_m_info_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28