Project

General

Profile

Bug #236 ยป 0001-removed-xref-from-the-alert-fastlog.patch

Gurvinder Singh, 09/24/2010 12:33 PM

View differences:

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);
    (1-1/1)