|
@@ -84,6 +84,7 @@ static int bOptimizeUniProc = 1; /* enable uniprocessor optimizations */ |
|
|
static int bParseHOSTNAMEandTAG = 1; /* parser modification (based on startup params!) */ |
|
|
static int bPreserveFQDN = 0; /* should FQDNs always be preserved? */ |
|
|
static int iMaxLine = 8096; /* maximum length of a syslog message */ |
|
|
static int iGnuTLSLoglevel = 0; |
|
|
static int iDefPFFamily = PF_UNSPEC; /* protocol family (IPv4, IPv6 or both) */ |
|
|
static int bDropMalPTRMsgs = 0;/* Drop messages which have malicious PTR records during DNS lookup */ |
|
|
static int option_DisallowWarning = 1; /* complain if message from disallowed sender is received */ |
|
@@ -131,6 +132,7 @@ static struct cnfparamdescr cnfparamdescr[] = { |
|
|
{ "preservefqdn", eCmdHdlrBinary, 0 }, |
|
|
{ "debug.onshutdown", eCmdHdlrBinary, 0 }, |
|
|
{ "debug.logfile", eCmdHdlrString, 0 }, |
|
|
{ "debug.gnutls", eCmdHdlrPositiveInt, 0 }, |
|
|
{ "defaultnetstreamdrivercafile", eCmdHdlrString, 0 }, |
|
|
{ "defaultnetstreamdriverkeyfile", eCmdHdlrString, 0 }, |
|
|
{ "defaultnetstreamdrivercertfile", eCmdHdlrString, 0 }, |
|
@@ -183,6 +185,12 @@ GetMaxLine(void) |
|
|
return(iMaxLine); |
|
|
} |
|
|
|
|
|
int |
|
|
GetGnuTLSLoglevel(void) |
|
|
{ |
|
|
return(iGnuTLSLoglevel); |
|
|
} |
|
|
|
|
|
/* define a macro for the simple properties' set and get functions |
|
|
* (which are always the same). This is only suitable for pretty |
|
|
* simple cases which require neither checks nor memory allocation. |
|
@@ -1040,6 +1048,8 @@ glblDoneLoadCnf(void) |
|
|
} else if(!strcmp(paramblk.descr[i].name, "debug.onshutdown")) { |
|
|
glblDebugOnShutdown = (int) cnfparamvals[i].val.d.n; |
|
|
errmsg.LogError(0, RS_RET_OK, "debug: onShutdown set to %d", glblDebugOnShutdown); |
|
|
} else if(!strcmp(paramblk.descr[i].name, "debug.gnutls")) { |
|
|
iGnuTLSLoglevel = (int) cnfparamvals[i].val.d.n; |
|
|
} else if(!strcmp(paramblk.descr[i].name, "parser.controlcharacterescapeprefix")) { |
|
|
cCCEscapeChar = (uchar) *es_str2cstr(cnfparamvals[i].val.d.estr, NULL); |
|
|
} else if(!strcmp(paramblk.descr[i].name, "parser.droptrailinglfonreception")) { |
|
|