X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fread-alert.h;h=ff9b71f9655efdadce533712b5e5355766cc5c83;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=83bcd2678a69ddede02243608f7f6532bd918b14;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/headers/read-alert.h b/src/headers/read-alert.h old mode 100755 new mode 100644 index 83bcd26..ff9b71f --- a/src/headers/read-alert.h +++ b/src/headers/read-alert.h @@ -1,5 +1,3 @@ -/* @(#) $Id$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * @@ -9,34 +7,46 @@ * Foundation */ - - #ifndef __CRALERT_H #define __CRALERT_H -#define CRALERT_MAIL_SET 0x001 +#define CRALERT_MAIL_SET 0x001 #define CRALERT_EXEC_SET 0x002 #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; char *comment; char *group; char *srcip; + int srcport; + char *dstip; + int dstport; char *user; + char *filename; + char *old_md5; + char *new_md5; + char *old_sha1; + char *new_sha1; char **log; -}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 +