From cc3c1779cd835758e2d8dc5ee7d90ca839d5598d Mon Sep 17 00:00:00 2001 From: Will Metcalf Date: Wed, 30 Dec 2009 15:59:56 -0600 Subject: [PATCH] more project name updates --- doxygen.cfg | 2 +- src/suricata.c | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/doxygen.cfg b/doxygen.cfg index 9b8e439cac..2a28300d55 100644 --- a/doxygen.cfg +++ b/doxygen.cfg @@ -27,7 +27,7 @@ # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. -PROJECT_NAME = eidps +PROJECT_NAME = suricata # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or diff --git a/src/suricata.c b/src/suricata.c index d5e730f8c2..839c405776 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -94,17 +94,17 @@ volatile sig_atomic_t sigint_count = 0; volatile sig_atomic_t sighup_count = 0; volatile sig_atomic_t sigterm_count = 0; -#define EIDPS_SIGINT 0x01 -#define EIDPS_SIGHUP 0x02 -#define EIDPS_SIGTERM 0x04 -#define EIDPS_STOP 0x08 -#define EIDPS_KILL 0x10 +#define SURICATA_SIGINT 0x01 +#define SURICATA_SIGHUP 0x02 +#define SURICATA_SIGTERM 0x04 +#define SURICATA_STOP 0x08 +#define SURICATA_KILL 0x10 static uint8_t sigflags = 0; -static void SignalHandlerSigint(/*@unused@*/ int sig) { sigint_count = 1; sigflags |= EIDPS_SIGINT; } -static void SignalHandlerSigterm(/*@unused@*/ int sig) { sigterm_count = 1; sigflags |= EIDPS_SIGTERM; } -static void SignalHandlerSighup(/*@unused@*/ int sig) { sighup_count = 1; sigflags |= EIDPS_SIGHUP; } +static void SignalHandlerSigint(/*@unused@*/ int sig) { sigint_count = 1; sigflags |= SURICATA_SIGINT; } +static void SignalHandlerSigterm(/*@unused@*/ int sig) { sigterm_count = 1; sigflags |= SURICATA_SIGTERM; } +static void SignalHandlerSighup(/*@unused@*/ int sig) { sighup_count = 1; sigflags |= SURICATA_SIGHUP; } static void SignalHandlerSetup(int sig, void (*handler)()) @@ -252,11 +252,11 @@ Packet *TunnelPktSetup(ThreadVars *t, DecodeThreadVars *dtv, Packet *parent, uin function. Purpose: pcap file mode needs to be able to tell the engine the file eof is reached. */ void EngineStop(void) { - sigflags |= EIDPS_STOP; + sigflags |= SURICATA_STOP; } void EngineKill(void) { - sigflags |= EIDPS_KILL; + sigflags |= SURICATA_KILL; } void usage(const char *progname) @@ -665,7 +665,7 @@ int main(int argc, char **argv) if (sigflags) { SCLogInfo("signal received"); - if (sigflags & EIDPS_STOP) { + if (sigflags & SURICATA_STOP) { SCLogInfo("SIGINT or EngineStop received"); /* Stop the engine so it quits after processing the pcap file @@ -673,7 +673,7 @@ int main(int argc, char **argv) * threads. */ char done = 0; do { - if (sigflags & EIDPS_SIGTERM || sigflags & EIDPS_KILL) + if (sigflags & SURICATA_SIGTERM || sigflags & SURICATA_KILL) break; SCMutexLock(&mutex_pending); @@ -688,10 +688,10 @@ int main(int argc, char **argv) SCLogInfo("all packets processed by threads, stopping engine"); } - if (sigflags & EIDPS_SIGHUP) { + if (sigflags & SURICATA_SIGHUP) { SCLogInfo("SIGHUP received"); } - if (sigflags & EIDPS_SIGTERM) { + if (sigflags & SURICATA_SIGTERM) { SCLogInfo("SIGTERM received"); }