#include <windows.h>
#include <stdio.h>
#include <time.h>
#include "name.h"
#include "syslog.h"
#include "snort.h"
#include "util.h"
Go to the source code of this file.
Defines | |
#define | _WINSOCKAPI_ |
#define | TBUF_LEN 2048 |
#define | FMT_LEN 1024 |
#define | INTERNALLOG LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID |
#define | DEC() |
Functions | |
void | syslog (int pri, char *fmt,...) |
void | vsyslog (int pri, char *fmt, va_list ap) |
void | openlog (char *ident, int logstat, int logfac) |
void | AddEventSource (char *ident) |
unsigned long | resolve_host (char *host) |
Variables | |
static int | LogFile = -1 |
static int | opened |
static int | LogStat = 0 |
static char * | LogTag = NULL |
static int | LogFacility = LOG_USER |
static int | LogMask = 0xff |
|
|
|
Value: do { \ if (prlen >= tbuf_left) \ prlen = tbuf_left - 1; \ p += prlen; \ tbuf_left -= prlen; \ } while (0) Referenced by vsyslog(). |
|
Definition at line 43 of file syslog.c. Referenced by vsyslog(). |
|
Definition at line 44 of file syslog.c. Referenced by vsyslog(). |
|
Definition at line 42 of file syslog.c. Referenced by vsyslog(). |
|
Definition at line 262 of file syslog.c. Referenced by openlog(). |
|
Definition at line 247 of file syslog.c. References AddEventSource(), LOG_FACMASK, LogFacility, LogStat, LogTag, NULL, and opened. Referenced by AlertSyslogInit(), SnortMain(), and vsyslog(). |
|
Definition at line 310 of file syslog.c. Referenced by vsyslog(). |
|
Definition at line 53 of file syslog.c. References vsyslog(). Referenced by AlertSyslog(), ErrorMessage(), FatalError(), flow_errormsg(), flow_fatalerror(), flow_printf(), InterfaceThread(), LogMessage(), PrintError(), and vsyslog(). |
|
Definition at line 61 of file syslog.c. References closesocket, DEC, errno, ErrorMessage(), EVMSG_SIMPLE, FMT_LEN, HANDLE, INTERNALLOG, LOG_FACMASK, LOG_MASK, LOG_PERROR, LOG_PID, LOG_PRI, LOG_PRIMASK, LogFacility, LogMask, LogStat, LogTag, NULL, opened, openlog(), pv, resolve_host(), snprintf, syslog(), TBUF_LEN, VERSION, and vsnprintf. Referenced by syslog(). |
|
|
|
|
|
Definition at line 51 of file syslog.c. Referenced by vsyslog(). |
|
|
|
|
|
|