|
@@ -32,19 +32,19 @@ typedef struct {
|
|
|
|
|
|
|
|
extern time_t online_since;
|
|
extern time_t online_since;
|
|
|
extern int backgrd, flood_telnet_thr, flood_telnet_time;
|
|
extern int backgrd, flood_telnet_thr, flood_telnet_time;
|
|
|
-extern int shtime, share_greet, keep_all_logs;
|
|
|
|
|
|
|
+extern int shtime, share_greet;
|
|
|
extern int allow_new_telnets, use_telnet_banner;
|
|
extern int allow_new_telnets, use_telnet_banner;
|
|
|
-extern int default_flags, conmask, switch_logfiles_at, connect_timeout;
|
|
|
|
|
|
|
+extern int default_flags, conmask, connect_timeout;
|
|
|
extern int firewallport, notify_users_at, flood_thr, ignore_time;
|
|
extern int firewallport, notify_users_at, flood_thr, ignore_time;
|
|
|
extern int reserved_port_min, reserved_port_max, localhub;
|
|
extern int reserved_port_min, reserved_port_max, localhub;
|
|
|
extern char origbotname[], botuser[], motdfile[], admin[], userfile[],
|
|
extern char origbotname[], botuser[], motdfile[], admin[], userfile[],
|
|
|
firewall[], notify_new[], hostname[], hostname6[], myip[], myip6[],
|
|
firewall[], notify_new[], hostname[], hostname6[], myip[], myip6[],
|
|
|
tempdir[], owner[], network[], botnetnick[],
|
|
tempdir[], owner[], network[], botnetnick[],
|
|
|
bannerfile[], egg_version[], natip[], configfile[],
|
|
bannerfile[], egg_version[], natip[], configfile[],
|
|
|
- logfile_suffix[], textdir[], pid_file[], dcc_prefix[],
|
|
|
|
|
|
|
+ textdir[], pid_file[], dcc_prefix[],
|
|
|
netpass[];
|
|
netpass[];
|
|
|
|
|
|
|
|
-extern int die_on_sighup, die_on_sigterm, max_logs, max_logsize,
|
|
|
|
|
|
|
+extern int die_on_sighup, die_on_sigterm,
|
|
|
enable_simul, dcc_total, debug_output, identtimeout,
|
|
enable_simul, dcc_total, debug_output, identtimeout,
|
|
|
protect_telnet, dupwait_timeout, egg_numver, share_unlinks,
|
|
protect_telnet, dupwait_timeout, egg_numver, share_unlinks,
|
|
|
dcc_sanitycheck, sort_users, tands, resolve_timeout,
|
|
dcc_sanitycheck, sort_users, tands, resolve_timeout,
|
|
@@ -65,8 +65,6 @@ int allow_dk_cmds = 1;
|
|
|
int must_be_owner = 1;
|
|
int must_be_owner = 1;
|
|
|
int max_dcc = 200; /* needs at least 4 or 5 just to
|
|
int max_dcc = 200; /* needs at least 4 or 5 just to
|
|
|
get started. 20 should be enough */
|
|
get started. 20 should be enough */
|
|
|
-int quick_logs = 1; /* quick write logs? (flush them
|
|
|
|
|
- every min instead of every 5 */
|
|
|
|
|
int quiet_save = 1; /* quiet-save patch by Lucas */
|
|
int quiet_save = 1; /* quiet-save patch by Lucas */
|
|
|
int strtot = 0;
|
|
int strtot = 0;
|
|
|
int handlen = HANDLEN;
|
|
int handlen = HANDLEN;
|
|
@@ -218,11 +216,6 @@ static char *tcl_eggint(ClientData cdata, Tcl_Interp *irp, char *name1,
|
|
|
return "you can't DECREASE max-dcc";
|
|
return "you can't DECREASE max-dcc";
|
|
|
max_dcc = l;
|
|
max_dcc = l;
|
|
|
init_dcc_max();
|
|
init_dcc_max();
|
|
|
- } else if ((int *) ii->var == &max_logs) {
|
|
|
|
|
- if (l < max_logs)
|
|
|
|
|
- return "you can't DECREASE max-logs";
|
|
|
|
|
- max_logs = l;
|
|
|
|
|
- init_misc();
|
|
|
|
|
} else
|
|
} else
|
|
|
*(ii->var) = (int) l;
|
|
*(ii->var) = (int) l;
|
|
|
}
|
|
}
|
|
@@ -289,8 +282,6 @@ static char *tcl_eggstr(ClientData cdata, Tcl_Interp *irp, char *name1,
|
|
|
s[abs(st->max)] = 0;
|
|
s[abs(st->max)] = 0;
|
|
|
if (st->str == botnetnick)
|
|
if (st->str == botnetnick)
|
|
|
botnet_change(s);
|
|
botnet_change(s);
|
|
|
- else if (st->str == logfile_suffix)
|
|
|
|
|
- logsuffix_change(s);
|
|
|
|
|
else if (st->str == firewall) {
|
|
else if (st->str == firewall) {
|
|
|
splitc(firewall, s, ':');
|
|
splitc(firewall, s, ':');
|
|
|
if (!firewall[0])
|
|
if (!firewall[0])
|
|
@@ -458,7 +449,6 @@ static tcl_strings def_tcl_strings[] =
|
|
|
/* confvar patch by aaronwl */
|
|
/* confvar patch by aaronwl */
|
|
|
{"config", configfile, 0, 0},
|
|
{"config", configfile, 0, 0},
|
|
|
{"telnet-banner", bannerfile, 120, STR_PROTECT},
|
|
{"telnet-banner", bannerfile, 120, STR_PROTECT},
|
|
|
- {"logfile-suffix", logfile_suffix, 20, 0},
|
|
|
|
|
{"pidfile", pid_file, 120, STR_PROTECT},
|
|
{"pidfile", pid_file, 120, STR_PROTECT},
|
|
|
/*settings made by installer */
|
|
/*settings made by installer */
|
|
|
{"dcc_prefix", dcc_prefix, 1, 0},
|
|
{"dcc_prefix", dcc_prefix, 1, 0},
|
|
@@ -473,11 +463,9 @@ static tcl_ints def_tcl_ints[] =
|
|
|
{"handlen", &handlen, 2},
|
|
{"handlen", &handlen, 2},
|
|
|
{"dcc-flood-thr", &dcc_flood_thr, 0},
|
|
{"dcc-flood-thr", &dcc_flood_thr, 0},
|
|
|
{"hourly-updates", ¬ify_users_at, 0},
|
|
{"hourly-updates", ¬ify_users_at, 0},
|
|
|
- {"switch-logfiles-at", &switch_logfiles_at, 0},
|
|
|
|
|
{"connect-timeout", &connect_timeout, 0},
|
|
{"connect-timeout", &connect_timeout, 0},
|
|
|
{"reserved-port", &reserved_port_min, 0},
|
|
{"reserved-port", &reserved_port_min, 0},
|
|
|
/* booleans (really just ints) */
|
|
/* booleans (really just ints) */
|
|
|
- {"keep-all-logs", &keep_all_logs, 0},
|
|
|
|
|
{"open-telnets", &allow_new_telnets, 0},
|
|
{"open-telnets", &allow_new_telnets, 0},
|
|
|
{"use-telnet-banner", &use_telnet_banner, 0},
|
|
{"use-telnet-banner", &use_telnet_banner, 0},
|
|
|
{"uptime", (int *) &online_since, 2},
|
|
{"uptime", (int *) &online_since, 2},
|
|
@@ -489,9 +477,6 @@ static tcl_ints def_tcl_ints[] =
|
|
|
{"die-on-sigterm", &die_on_sigterm, 1},
|
|
{"die-on-sigterm", &die_on_sigterm, 1},
|
|
|
{"remote-boots", &remote_boots, 1},
|
|
{"remote-boots", &remote_boots, 1},
|
|
|
{"max-dcc", &max_dcc, 0},
|
|
{"max-dcc", &max_dcc, 0},
|
|
|
- {"max-logs", &max_logs, 0},
|
|
|
|
|
- {"max-logsize", &max_logsize, 0},
|
|
|
|
|
- {"quick-logs", &quick_logs, 0},
|
|
|
|
|
{"enable-simul", &enable_simul, 1},
|
|
{"enable-simul", &enable_simul, 1},
|
|
|
{"debug-output", &debug_output, 1},
|
|
{"debug-output", &debug_output, 1},
|
|
|
{"protect-telnet", &protect_telnet, 0},
|
|
{"protect-telnet", &protect_telnet, 0},
|
|
@@ -499,7 +484,6 @@ static tcl_ints def_tcl_ints[] =
|
|
|
{"sort-users", &sort_users, 0},
|
|
{"sort-users", &sort_users, 0},
|
|
|
{"ident-timeout", &identtimeout, 0},
|
|
{"ident-timeout", &identtimeout, 0},
|
|
|
{"share-unlinks", &share_unlinks, 0},
|
|
{"share-unlinks", &share_unlinks, 0},
|
|
|
- {"log-time", &shtime, 0},
|
|
|
|
|
{"allow-dk-cmds", &allow_dk_cmds, 0},
|
|
{"allow-dk-cmds", &allow_dk_cmds, 0},
|
|
|
{"resolve-timeout", &resolve_timeout, 0},
|
|
{"resolve-timeout", &resolve_timeout, 0},
|
|
|
{"must-be-owner", &must_be_owner, 1},
|
|
{"must-be-owner", &must_be_owner, 1},
|