-/* @(#) $Id: syslog.c,v 1.17 2009/06/24 18:53:07 dcid Exp $ */
+/* @(#) $Id: ./src/remoted/syslog.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
* Foundation
*/
-/* 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)
/* Initializing some variables */
memset(buffer, '\0', OS_SIZE_1024 +2);
-
+
/* Connecting to the message queue
* Exit if it fails.
*/
{
ErrorExit(QUEUE_FATAL,ARGV0, DEFAULTQUEUE);
}
-
+
/* 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 */
else
{
buffer_pt = buffer;
- }
+ }
/* Checking if IP is allowed here */
if(OS_IPNotAllowed(srcip))