bignet support for more than 2000 users

This commit is contained in:
fishwaldo 2002-12-14 10:23:28 +00:00
parent f2b73e7249
commit 9112a16180
6 changed files with 66 additions and 2 deletions

View file

@ -9,6 +9,7 @@ NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rant
- Some of statserv stats were never displayed, fixed that
- Fix a adns compile error and remove the warnings
- -Wall is only set when compiling with debug mode support. No need for the make.log file anymore
- ./configure --enable-bignet support for more than 2000 users
* NeoStats * Shmad & Fish * Version 2.5.0-Release Candidate 2
- Misc. Updates (S)

View file

@ -14,9 +14,15 @@ Core:
to Ensure that people read their config file before running!
UltimateIRCD Version 3.0.0.a26 (Current at release time) is the only
version of Ultimate thats supported)
If you use the Raw command (Bad IRCOP, Bad!) then you have to
explicitly enable it via the configure interface
recv.log is no longer enabled on production builds. No more eating up
Disk Space!
If you are on a large network (usercount goes over 2000 users)
then you should configure with --enable-bignet (this
brings the limit upto 4000 users, if you need more contact us on
the boards).
Read the ChangeLog for a complete description of what has changed

View file

@ -134,3 +134,5 @@
/* define if you want to enable Raw */
#undef USE_RAW
/* define if you want to use bignet support */
#undef BIGNET

26
configure vendored
View file

@ -824,6 +824,7 @@ Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-debug - Enable Debuging
--enable-bignet - Large Network Support
--enable-unreal - enable Unreal IRCD Support
--enable-ultimate2 - enable Ultimate 2.x.x IRCD Support
--enable-ultimate3 - enable Ultimate 3.x.x IRCD Support
@ -4708,6 +4709,31 @@ else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi;
echo "$as_me:$LINENO: checking Whether to Large Network Support (More than 2000 users)..." >&5
echo $ECHO_N "checking Whether to Large Network Support (More than 2000 users)...... $ECHO_C" >&6
# Check whether --enable-bignet or --disable-bignet was given.
if test "${enable_bignet+set}" = set; then
enableval="$enable_bignet"
case "$enableval" in
yes)
cat >>confdefs.h <<\_ACEOF
#define BIGNET 1
_ACEOF
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
*)
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
;;
esac
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi;
echo "$as_me:$LINENO: checking Whether to Enable Unreal IRCD Support..." >&5

View file

@ -95,6 +95,21 @@ AC_ARG_ENABLE(debug,
esac],
AC_MSG_RESULT(no)
)
dnl check if we are running with bignet....
AC_MSG_CHECKING(Whether to Large Network Support (More than 2000 users)...)
AC_ARG_ENABLE(bignet,
[ --enable-bignet - Large Network Support],
[ case "$enableval" in
yes)
AC_DEFINE(BIGNET, 1, 'Enable BigNet')
AC_MSG_RESULT(yes)
;;
*)
AC_MSG_RESULT(no)
;;
esac],
AC_MSG_RESULT(no)
)
dnl check to see if we should enable Unreal IRCD Support
AC_MSG_CHECKING(Whether to Enable Unreal IRCD Support...)

18
stats.h
View file

@ -20,7 +20,7 @@
** USA
**
** NeoStats CVS Identification
** $Id: stats.h,v 1.62 2002/10/24 14:32:48 fishwaldo Exp $
** $Id: stats.h,v 1.63 2002/12/14 10:23:28 fishwaldo Exp $
*/
#ifndef STATS_H
@ -78,6 +78,20 @@
#define MAXNICK 32
#define MAXUSER 10
#define NUM_MODULES 255
#ifdef BIGNET
#define S_TABLE_SIZE 200
#define U_TABLE_SIZE 3999
#define D_TABLE_SIZE 3999
#define C_TABLE_SIZE 3999
#define CHAN_MEM_SIZE 3000
#define MAXJOINCHANS 3000
#define T_TABLE_SIZE 300 /* Number of Timers */
#define B_TABLE_SIZE 100 /* Number of Bots */
#define MAXMODES CHAN_MEM_SIZE
#define DNS_QUEUE_SIZE 100 /* number on concurrent DNS lookups */
#else
#define S_TABLE_SIZE 97
#define U_TABLE_SIZE 1999
#define D_TABLE_SIZE 1999
@ -88,7 +102,7 @@
#define B_TABLE_SIZE 100 /* Number of Bots */
#define MAXMODES CHAN_MEM_SIZE
#define DNS_QUEUE_SIZE 100 /* number on concurrent DNS lookups */
#endif
#define bzero(x, y) memset(x, '\0', y);
#define is_synced me.synced