#include <sys/types.h>#include <string.h>#include <errno.h>#include <sys/stat.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include "plugbase.h"#include "spo_plugbase.h"#include "parser.h"#include "debug.h"#include "decode.h"#include "event.h"#include "log.h"#include "util.h"#include "snort.h"Go to the source code of this file.
Defines | |
| #define | DUMP 1 |
| #define | BOGUS 2 |
| #define | NON_IP 3 |
| #define | ARP 4 |
| #define | GENERIC_LOG 5 |
Functions | |
| void | LogAsciiInit (u_char *args) |
| void | LogAscii (Packet *p, char *msg, void *arg, Event *event) |
| void | LogAsciiCleanExit (int signal, void *arg) |
| void | LogAsciiRestart (int signal, void *arg) |
| char * | IcmpFileName (Packet *p) |
| static FILE * | OpenLogFile (int mode, Packet *p) |
| void | LogAsciiSetup () |
Variables | |
| OptTreeNode * | otn_tmp |
| static char * | logfile [] |
|
|
Definition at line 86 of file spo_log_ascii.c. Referenced by LogAscii(), and OpenLogFile(). |
|
|
Definition at line 84 of file spo_log_ascii.c. Referenced by OpenLogFile(). |
|
|
Definition at line 83 of file spo_log_ascii.c. Referenced by OpenLogFile(). |
|
|
Definition at line 87 of file spo_log_ascii.c. Referenced by LogAscii(), and OpenLogFile(). |
|
|
Definition at line 85 of file spo_log_ascii.c. Referenced by LogAscii(), and OpenLogFile(). |
|
|
||||||||||||||||||||
|
Definition at line 112 of file spo_log_ascii.c. References _Packet::ah, ARP, DEBUG_LOG, DEBUG_WRAP, FatalError(), GENERIC_LOG, _IPHdr::ip_proto, _Packet::iph, NON_IP, NULL, OpenLogFile(), PrintArpHeader(), and PrintIPPkt(). Referenced by LogAsciiInit(). |
|
||||||||||||
|
Definition at line 149 of file spo_log_ascii.c. Referenced by LogAsciiInit(). |
|
|
Definition at line 98 of file spo_log_ascii.c. References AddFuncToCleanExitList(), AddFuncToOutputList(), AddFuncToRestartList(), DEBUG_PLUGIN, DEBUG_WRAP, _progvars::log_plugin_active, LogAscii(), LogAsciiCleanExit(), LogAsciiRestart(), NT_OUTPUT_LOG, NULL, and pv. Referenced by LogAsciiSetup(). |
|
||||||||||||
|
Definition at line 154 of file spo_log_ascii.c. Referenced by LogAsciiInit(). |
|
|
Definition at line 89 of file spo_log_ascii.c. References DEBUG_PLUGIN, DEBUG_WRAP, LogAsciiInit(), NT_OUTPUT_LOG, and RegisterOutputPlugin(). Referenced by InitOutputPlugins(). |
|
||||||||||||
|
Definition at line 173 of file spo_log_ascii.c. References ARP, BOGUS, bzero, DEBUG_FLOW, DEBUG_WRAP, _Packet::dp, DUMP, errno, FatalError(), _Packet::frag_flag, GENERIC_LOG, _progvars::homenet, IcmpFileName(), _IPHdr::ip_dst, _IPHdr::ip_proto, _IPHdr::ip_src, _Packet::iph, _progvars::log_dir, logfile, _OptTreeNode::logto, mkdir, _progvars::netmask, NON_IP, NULL, protocol_names, pv, S_IROTH, S_IRWXG, S_IRWXU, S_IXOTH, snprintf, _Packet::sp, and STD_BUF. Referenced by LogAscii(). |
|
|
Initial value:
{ "", "PACKET_FRAG", "PACKET_BOGUS", "PACKET_NONIP", "ARP", "log" }
Definition at line 159 of file spo_log_ascii.c. Referenced by OpenLogFile(), and Stream4Init(). |
|
|
|
1.4.2