Bug #236 ยป 0001-removed-xref-from-the-alert-fastlog.patch
src/alert-fastlog.c | ||
---|---|---|
{
|
||
AlertFastLogThread *aft = (AlertFastLogThread *)data;
|
||
int i;
|
||
Reference *ref = NULL;
|
||
char timebuf[64];
|
||
if (p->alerts.cnt == 0)
|
||
... | ... | |
fprintf(aft->file_ctx->fp, "%s [**] [%" PRIu32 ":%" PRIu32 ":%" PRIu32 "] %s [**] [Classification: %s] [Priority: %" PRIu32 "] {%" PRIu32 "} %s:%" PRIu32 " -> %s:%" PRIu32 "",
|
||
timebuf, pa->gid, pa->sid, pa->rev, pa->msg, pa->class_msg, pa->prio, IPV4_GET_IPPROTO(p), srcip, p->sp, dstip, p->dp);
|
||
if(pa->references != NULL) {
|
||
fprintf(aft->file_ctx->fp," ");
|
||
for (ref = pa->references; ref != NULL; ref = ref->next) {
|
||
fprintf(aft->file_ctx->fp,"[Xref => %s%s]", ref->key, ref->reference);
|
||
}
|
||
}
|
||
fprintf(aft->file_ctx->fp,"\n");
|
||
fflush(aft->file_ctx->fp);
|
||
... | ... | |
{
|
||
AlertFastLogThread *aft = (AlertFastLogThread *)data;
|
||
int i;
|
||
Reference *ref = NULL;
|
||
char timebuf[64];
|
||
if (p->alerts.cnt == 0)
|
||
... | ... | |
fprintf(aft->file_ctx->fp, "%s [**] [%" PRIu32 ":%" PRIu32 ":%" PRIu32 "] %s [**] [Classification: %s] [Priority: %" PRIu32 "] {%" PRIu32 "} %s:%" PRIu32 " -> %s:%" PRIu32 "",
|
||
timebuf, pa->gid, pa->sid, pa->rev, pa->msg, pa->class_msg, pa->prio, IPV6_GET_L4PROTO(p), srcip, p->sp, dstip, p->dp);
|
||
if(pa->references != NULL) {
|
||
fprintf(aft->file_ctx->fp," ");
|
||
for (ref = pa->references; ref != NULL; ref = ref->next) {
|
||
fprintf(aft->file_ctx->fp,"[Xref => %s%s]", ref->key, ref->reference);
|
||
}
|
||
}
|
||
fprintf(aft->file_ctx->fp,"\n");
|
||
fflush(aft->file_ctx->fp);
|
||
... | ... | |
{
|
||
AlertFastLogThread *aft = (AlertFastLogThread *)data;
|
||
int i;
|
||
Reference *ref = NULL;
|
||
char timebuf[64];
|
||
if (p->alerts.cnt == 0)
|
||
... | ... | |
fprintf(aft->file_ctx->fp, "] [pcap file packet: %"PRIu64"]", p->pcap_cnt);
|
||
}
|
||
if(pa->references != NULL) {
|
||
fprintf(aft->file_ctx->fp," ");
|
||
for (ref = pa->references; ref != NULL; ref = ref->next) {
|
||
fprintf(aft->file_ctx->fp,"[Xref => %s%s]", ref->key, ref->reference);
|
||
}
|
||
}
|
||
fprintf(aft->file_ctx->fp,"\n");
|
||
fflush(aft->file_ctx->fp);
|