projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.7
[ossec-hids.git]
/
src
/
remoted
/
syslog.c
diff --git
a/src/remoted/syslog.c
b/src/remoted/syslog.c
index
fd08c35
..
7011aa8
100755
(executable)
--- a/
src/remoted/syslog.c
+++ b/
src/remoted/syslog.c
@@
-1,4
+1,5
@@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/remoted/syslog.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
@@
-18,7
+19,7
@@
-/* OS_IPNotAllowed, v0.1, 2005/02/11
+/* OS_IPNotAllowed, v0.1, 2005/02/11
* Checks if an IP is not allowed.
*/
static int OS_IPNotAllowed(char *srcip)
* Checks if an IP is not allowed.
*/
static int OS_IPNotAllowed(char *srcip)
@@
-66,7
+67,7
@@
void HandleSyslog()
/* Initializing some variables */
memset(buffer, '\0', OS_SIZE_1024 +2);
/* Initializing some variables */
memset(buffer, '\0', OS_SIZE_1024 +2);
-
+
/* Connecting to the message queue
* Exit if it fails.
*/
/* Connecting to the message queue
* Exit if it fails.
*/
@@
-74,13
+75,13
@@
void HandleSyslog()
{
ErrorExit(QUEUE_FATAL,ARGV0, DEFAULTQUEUE);
}
{
ErrorExit(QUEUE_FATAL,ARGV0, DEFAULTQUEUE);
}
-
+
/* Infinite loop in here */
while(1)
{
/* Receiving message */
/* Infinite loop in here */
while(1)
{
/* Receiving message */
- recv_b = recvfrom(logr.sock, buffer, OS_SIZE_1024, 0,
+ recv_b = recvfrom(logr.sock, buffer, OS_SIZE_1024, 0,
(struct sockaddr *)&peer_info, &peer_size);
/* Nothing received */
(struct sockaddr *)&peer_info, &peer_size);
/* Nothing received */
@@
-119,7
+120,7
@@
void HandleSyslog()
else
{
buffer_pt = buffer;
else
{
buffer_pt = buffer;
- }
+ }
/* Checking if IP is allowed here */
if(OS_IPNotAllowed(srcip))
/* Checking if IP is allowed here */
if(OS_IPNotAllowed(srcip))