X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Fread-alert.h;h=ff9b71f9655efdadce533712b5e5355766cc5c83;hp=48b415fbe0aa26c0ecba4e730b2ea560b975795d;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b diff --git a/src/headers/read-alert.h b/src/headers/read-alert.h old mode 100755 new mode 100644 index 48b415f..ff9b71f --- a/src/headers/read-alert.h +++ b/src/headers/read-alert.h @@ -1,6 +1,3 @@ -/* @(#) $Id: ./src/headers/read-alert.h, 2011/09/08 dcid Exp $ - */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * @@ -10,8 +7,6 @@ * Foundation */ - - #ifndef __CRALERT_H #define __CRALERT_H @@ -20,12 +15,10 @@ #define CRALERT_READ_ALL 0x004 #define CRALERT_FP_SET 0x010 - /* File queue */ -typedef struct _alert_data -{ - int rule; - int level; +typedef struct _alert_data { + unsigned int rule; + unsigned int level; char *alertid; char *date; char *location; @@ -42,15 +35,18 @@ typedef struct _alert_data char *old_sha1; char *new_sha1; char **log; -#ifdef GEOIP - char *geoipdatasrc; - char *geoipdatadst; -#endif -}alert_data; - - -alert_data *GetAlertData(int flag, FILE *fp); -void FreeAlertData(alert_data *al_data); - + char *srcgeoip; + char *dstgeoip; + /* "9/19/2016 - Sivakumar Nellurandi - parsing additions" */ + char *file_size; + char *owner_chg; + char *group_chg; + char *perm_chg; + /* "9/19/2016 - Sivakumar Nellurandi - parsing additions" */ +} alert_data; + +alert_data *GetAlertData(int flag, FILE *fp) __attribute__((nonnull)); +void FreeAlertData(alert_data *al_data) __attribute__((nonnull)); #endif +