comparison src/syslog2iptables.cpp @ 9:d76f9ff42487

initial coding
author carl
date Sat, 03 Dec 2005 13:54:47 -0800
parents 276c4edc8521
children 5dfe0138b4f9
comparison
equal deleted inserted replaced
8:5f4549fc60b9 9:d76f9ff42487
21 // debug levels: 21 // debug levels:
22 // 4 - show syslog lines that match regex 22 // 4 - show syslog lines that match regex
23 // 3 - show files open/close 23 // 3 - show files open/close
24 // 1 - show config files loading 24 // 1 - show config files loading
25 25
26 #ifdef HAVE_CONFIG_H 26 #include "includes.h"
27 #include <config.h>
28 #endif
29
30 #include <iostream> 27 #include <iostream>
31 #include <cstdlib> 28 #include <cstdlib>
32 #include <errno.h> 29 #include <errno.h>
33 #include <sysexits.h> 30 #include <sysexits.h>
34 #include <unistd.h>
35 #include <pthread.h> 31 #include <pthread.h>
36 #include <syslog.h> 32 #include <syslog.h>
37 #include <sys/wait.h> /* header for waitpid() and various macros */ 33 #include <sys/wait.h> /* header for waitpid() and various macros */
38 #include <signal.h> /* header for signal functions */ 34 #include <signal.h> /* header for signal functions */
39 #include "includes.h"
40 35
41 extern "C" { 36 extern "C" {
42 void sig_chld(int signo); 37 void sig_chld(int signo);
43 } 38 }
44 int debug_syslog = 0; 39 int debug_syslog = 0;