remove legacy code from opsb

This commit is contained in:
Mark 2005-10-20 21:12:38 +00:00
parent 438333cdef
commit 0a2128e1ad
3 changed files with 3 additions and 42 deletions

3
blsb.c
View file

@ -50,8 +50,6 @@ static int blsb_set_exclusions_cb( const CmdParams *cmdparams, SET_REASON reason
static struct blsb {
int akilltime;
int cachetime;
int cachehits;
int doakill;
int verbose;
int exclusions;
@ -109,7 +107,6 @@ static bot_setting blsb_settings[]=
{
{"AKILL", &blsb.doakill, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_akill, NULL, (void*)1 },
{"AKILLTIME", &blsb.akilltime, SET_TYPE_INT, 0, 20736000,NS_ULEVEL_ADMIN, NULL, blsb_help_set_akilltime, NULL, (void*)TS_ONE_DAY },
{"CACHETIME", &blsb.cachetime, SET_TYPE_INT, 0, TS_ONE_DAY, NS_ULEVEL_ADMIN, NULL, blsb_help_set_cachetime, NULL, (void*)TS_ONE_HOUR },
{"VERBOSE", &blsb.verbose, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_verbose, NULL, (void*)1 },
{"EXCLUSIONS", &blsb.exclusions, SET_TYPE_BOOLEAN, 0, 0, NS_ULEVEL_ADMIN, NULL, blsb_help_set_exclusions, blsb_set_exclusions_cb, (void *)0 },
NS_SETTING_END()

6
blsb.h
View file

@ -35,11 +35,6 @@ typedef enum BL_LOOKUP_TYPE
BL_LOOKUP_TYPE_MAX
}BL_LOOKUP_TYPE;
typedef struct cache_entry {
unsigned long ip;
time_t when;
} cache_entry;
typedef struct dom_list {
char name[BUFSIZE];
char domain[BUFSIZE];
@ -65,7 +60,6 @@ extern const char *blsb_help_list[];
extern const char *blsb_help_check[];
extern const char *blsb_help_set_akill[];
extern const char *blsb_help_set_akilltime[];
extern const char *blsb_help_set_cachetime[];
extern const char *blsb_help_set_verbose[];
extern const char *blsb_help_set_exclusions[];

View file

@ -24,16 +24,10 @@
#include "neostats.h"
const char *blsb_about[] = {
"\2Open Proxy Scanning Bot Information\2",
"\2BLSB\2",
"",
"This service scans clients connecting to this network for",
"insecure proxies. Insecure proxies are often used to attack",
"networks or channels with clone bots. If you have a firewall,",
"or IDS software, please ignore any errors that this scan",
"may generate.",
"",
"If you have any further questions, please contact network",
"administration.",
"Checks clients against external blacklists as",
"they connect to the network.",
NULL
};
@ -47,14 +41,6 @@ const char *blsb_help_check[] = {
NULL
};
const char *blsb_help_status[] = {
"View blsb status",
"Syntax: \2STATUS\2",
"",
"Display status of the blacklist lookup service",
NULL
};
const char *blsb_help_add[] = {
"Add to the blacklist domains",
"Syntax: \2ADD <domain> <type> <name>\2",
@ -83,16 +69,6 @@ const char *blsb_help_list[] = {
NULL
};
const char *blsb_help_remove[] = {
"Remove an akill set by blsb",
"Syntax: \2REMOVE <ip|hostname>\2",
"",
"Remove akills that have been set by blsb.",
"<ip|hostname> is the hostname listed in your akill list",
"(usually found with /stats a)",
NULL
};
const char *blsb_help_set_akill [] = {
"\2AKILL <ON|OFF>\2",
"Whether to issue an akill for positive lookups",
@ -105,12 +81,6 @@ const char *blsb_help_set_akilltime [] = {
NULL
};
const char *blsb_help_set_cachetime [] = {
"\2CACHETIME <time>\2",
"Time (in seconds) that an entry will be cached",
NULL
};
const char *blsb_help_set_verbose [] = {
"\2VERBOSE <ON|OFF>\2",
"Whether blsb is verbose in operation or not",