#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include "event.h"
#include "decode.h"
#include "rules.h"
#include "plugbase.h"
#include "spo_plugbase.h"
#include "parser.h"
#include "debug.h"
#include "util.h"
#include "snort.h"
#include "inline.h"
Go to the source code of this file.
|
Definition at line 45 of file spo_database.c. |
|
Definition at line 202 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 208 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 210 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 209 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 204 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 207 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 206 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 205 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 198 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 211 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 212 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 215 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 214 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 213 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 196 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 193 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 194 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 195 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 201 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 199 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 192 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 203 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 200 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 218 of file spo_database.c. Referenced by DatabaseInit(). |
|
Definition at line 191 of file spo_database.c. Referenced by CheckDBVersion(), Database(), DatabaseInit(), GetLastCid(), NewQueryNode(), and UpdateLastCid(). |
|
|
|
Definition at line 113 of file spo_database.c. |
|
|
|
|
|
|
|
Definition at line 104 of file spo_database.c. |
|
Definition at line 1960 of file spo_database.c. References DB_MSSQL, DB_ODBC, DB_ORACLE, _SharedDatabaseData::dbtype_id, Insert(), and _DatabaseData::shared. Referenced by Database(). |
|
Definition at line 1908 of file spo_database.c. References DB_MSSQL, DB_MYSQL, DB_ODBC, _SharedDatabaseData::dbtype_id, MAX_QUERY_LENGTH, NULL, Select(), _DatabaseData::shared, SnortAlloc(), and snprintf. Referenced by DatabaseInit(). |
|
Definition at line 1994 of file spo_database.c. References DB_MSSQL, DB_ODBC, DB_ORACLE, _SharedDatabaseData::dbtype_id, DEBUG_WRAP, Insert(), LogMessage(), and _DatabaseData::shared. Referenced by Database(). |
|
Definition at line 2455 of file spo_database.c. References DB_MSSQL, DB_MYSQL, DB_ODBC, DB_ORACLE, DB_POSTGRESQL, DB_UNDEFINED, _SharedDatabaseData::dbname, _SharedDatabaseData::dbtype_id, ErrorMessage(), FatalError(), _SharedDatabaseData::host, mysql_errno(), mysql_error(), mysql_init(), mysql_real_connect(), NULL, _DatabaseData::password, _DatabaseData::port, _DatabaseData::shared, strstr(), and _DatabaseData::user. Referenced by DatabaseInit(). |
|
|
|
Definition at line 2744 of file spo_database.c. Referenced by ParseDatabaseArgs(). |
|
Definition at line 290 of file spo_database.c. References DatabaseInit(), DEBUG_INIT, DEBUG_WRAP, NT_OUTPUT_ALERT, and RegisterOutputPlugin(). Referenced by InitOutputPlugins(). |
|
Definition at line 2687 of file spo_database.c. References DB_MSSQL, DB_MYSQL, DB_ODBC, DB_POSTGRESQL, _SharedDatabaseData::dbname, _SharedDatabaseData::dbtype_id, mysql_close(), NULL, _progvars::quiet_flag, and _DatabaseData::shared. Referenced by SpoDatabaseCleanExitFunction(), and SpoDatabaseRestartFunction(). |
|
Definition at line 865 of file spo_database.c. References _SQLQuery::next, NULL, and _SQLQuery::val. Referenced by Database(). |
|
Definition at line 2832 of file spo_database.c. References _SharedDatabaseDataNode::data, _SharedDatabaseDataNode::next, and NULL. Referenced by SpoDatabaseCleanExitFunction(), and SpoDatabaseRestartFunction(). |
|
Definition at line 1881 of file spo_database.c. References MAX_QUERY_LENGTH, NULL, Select(), SnortAlloc(), and snprintf. Referenced by DatabaseInit(). |
|
|
|
Definition at line 2108 of file spo_database.c. References DB_MSSQL, DB_MYSQL, DB_ODBC, DB_ORACLE, DB_POSTGRESQL, _SharedDatabaseData::dbtype_id, DEBUG_LOG, DEBUG_WRAP, ErrorMessage(), int(), LogMessage(), mysql_errno(), mysql_error(), mysql_query(), NULL, and _DatabaseData::shared. Referenced by BeginTransaction(), CommitTransaction(), Database(), DatabaseInit(), RollbackTransaction(), and UpdateLastCid(). |
|
Definition at line 877 of file spo_database.c. References MAX_QUERY_LENGTH, _SQLQuery::next, NULL, SnortAlloc(), and _SQLQuery::val. Referenced by Database(). |
|
|
Definition at line 2049 of file spo_database.c. References DB_MSSQL, DB_ODBC, DB_ORACLE, _SharedDatabaseData::dbtype_id, DEBUG_WRAP, Insert(), LogMessage(), and _DatabaseData::shared. Referenced by Database(). |
|
Definition at line 2267 of file spo_database.c. References DB_MSSQL, DB_MYSQL, DB_ODBC, DB_ORACLE, DB_POSTGRESQL, _SharedDatabaseData::dbtype_id, DEBUG_LOG, DEBUG_WRAP, ErrorMessage(), int(), mysql_errno(), mysql_error(), mysql_fetch_row(), mysql_free_result(), mysql_query(), mysql_use_result(), NULL, and _DatabaseData::shared. Referenced by CheckDBVersion(), Database(), DatabaseInit(), and GetLastCid(). |
|
Definition at line 1700 of file spo_database.c. References DB_MSSQL, DB_MYSQL, DB_ORACLE, DB_POSTGRESQL, _SharedDatabaseData::dbtype_id, int(), _DatabaseData::shared, and SnortAlloc(). Referenced by Database(), and DatabaseInit(). |
|
Definition at line 2792 of file spo_database.c. References _SharedDatabaseData::cid, _SharedDatabaseDataNode::data, DEBUG_LOG, DEBUG_WRAP, Disconnect(), FreeSharedDataList(), instances, NULL, _DatabaseData::shared, _SharedDatabaseData::sid, and UpdateLastCid(). Referenced by DatabaseInit(). |
|
Definition at line 2812 of file spo_database.c. References _SharedDatabaseData::cid, _SharedDatabaseDataNode::data, DEBUG_LOG, DEBUG_WRAP, Disconnect(), FreeSharedDataList(), instances, NULL, _DatabaseData::shared, _SharedDatabaseData::sid, and UpdateLastCid(). Referenced by DatabaseInit(). |
|
Definition at line 1853 of file spo_database.c. References Insert(), MAX_QUERY_LENGTH, NULL, SnortAlloc(), and snprintf. Referenced by DatabaseInit(), SpoDatabaseCleanExitFunction(), and SpoDatabaseRestartFunction(). |
|
Definition at line 247 of file spo_database.c. Referenced by DatabaseInit(), SpoDatabaseCleanExitFunction(), and SpoDatabaseRestartFunction(). |
|
|
|
|
|
Definition at line 246 of file spo_database.c. |