X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Flogcollector%2Fread_snortfull.c;h=cbb3edcb80934c55b1977c976867548b19f0e4ae;hb=c41c816a22f0e06f1c2b0a91563f3d9a3bcdb82a;hp=56d09c59fff9f7d85032ee28f8511e47b2f04bec;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/logcollector/read_snortfull.c b/src/logcollector/read_snortfull.c index 56d09c5..cbb3edc 100755 --- a/src/logcollector/read_snortfull.c +++ b/src/logcollector/read_snortfull.c @@ -1,11 +1,12 @@ -/* @(#) $Id: read_snortfull.c,v 1.19 2009/06/24 17:06:27 dcid Exp $ */ +/* @(#) $Id: ./src/logcollector/read_snortfull.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 */ @@ -22,15 +23,15 @@ void *read_snortfull(int pos, int *rc, int drop_it) { int f_msg_size = OS_MAXSTR; - + char *one = "one"; char *two = "two"; - + char *p = NULL; char *q; char str[OS_MAXSTR + 1]; char f_msg[OS_MAXSTR +1]; - + *rc = 0; str[OS_MAXSTR]='\0'; f_msg[OS_MAXSTR] = '\0'; @@ -75,7 +76,7 @@ void *read_snortfull(int pos, int *rc, int drop_it) f_msg_size -= strlen(str)+1; p = two; } - + /* If it is a preprocessor message, it will not have * the classification. */ @@ -84,10 +85,10 @@ void *read_snortfull(int pos, int *rc, int drop_it) strncat(f_msg, "[Classification: Preprocessor] " "[Priority: 3] ", f_msg_size); strncat(f_msg, ++q, f_msg_size -40); - + /* Cleaning for next event */ p = NULL; - + /* Sending the message */ if(drop_it == 0) { @@ -133,7 +134,7 @@ void *read_snortfull(int pos, int *rc, int drop_it) } } } - + f_msg[0] = '\0'; f_msg_size = OS_MAXSTR; str[0] = '\0';