--- sbbs/src/sbbs3/services.h 2018/04/24 16:41:23 1.1 +++ sbbs/src/sbbs3/services.h 2018/04/24 16:43:02 1.1.1.2 @@ -2,13 +2,13 @@ /* Synchronet main/telnet server thread startup structure */ -/* $Id: services.h,v 1.1 2018/04/24 16:41:23 root Exp $ */ +/* $Id: services.h,v 1.1.1.2 2018/04/24 16:43:02 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -50,8 +50,9 @@ typedef struct { void* cbdata; /* Private data passed to callbacks */ /* Callbacks (NULL if unused) */ - int (*lputs)(void*, int, char*); /* Log - put string */ - void (*status)(void*, char*); + int (*lputs)(void*, int level, const char*); /* Log - put string */ + void (*errormsg)(void*, int level, const char* msg); + void (*status)(void*, const char*); void (*started)(void*); void (*recycle)(void*); void (*terminated)(void*, int code); @@ -79,6 +80,13 @@ typedef struct { /* JavaScript operating parameters */ js_startup_t js; + /* Login Attempt parameters */ + ulong login_attempt_delay; + ulong login_attempt_throttle; + ulong login_attempt_hack_threshold; + ulong login_attempt_filter_threshold; + link_list_t* login_attempt_list; + } services_startup_t; #if 0 @@ -98,7 +106,7 @@ static struct init_field services_init_f #define SERVICE_OPT_FULL_ACCEPT (1<<4) /* Accept/close connections when server is full */ /* services_startup_t.options bits that require re-init/recycle when changed */ -#define SERVICE_INIT_OPTS (BBS_OPT_LOCAL_TIMEZONE) +#define SERVICE_INIT_OPTS (0) #if defined(STARTUP_INI_BITDESC_TABLES) || defined(SERVICES_INI_BITDESC_TABLE) static ini_bitdesc_t service_options[] = {