From 6dd544689386c146b4d0ec55185408767cac38f9 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 6 May 2010 14:00:35 +0200 Subject: [PATCH] Use proper tcp/udp macro's in alert-debuglog --- src/alert-debuglog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alert-debuglog.c b/src/alert-debuglog.c index 5dbddd4aa8..732d046e57 100644 --- a/src/alert-debuglog.c +++ b/src/alert-debuglog.c @@ -126,10 +126,10 @@ TmEcode AlertDebugLogIPv4(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq fprintf(aft->file_ctx->fp, "SRC IP: %s\n", srcip); fprintf(aft->file_ctx->fp, "DST IP: %s\n", dstip); fprintf(aft->file_ctx->fp, "PROTO: %" PRIu32 "\n", IPV4_GET_IPPROTO(p)); - if (IPV4_GET_IPPROTO(p) == IPPROTO_TCP || IPV4_GET_IPPROTO(p) == IPPROTO_UDP) { + if (PKT_IS_TCP(p) || PKT_IS_UDP(p)) { fprintf(aft->file_ctx->fp, "SRC PORT: %" PRIu32 "\n", p->sp); fprintf(aft->file_ctx->fp, "DST PORT: %" PRIu32 "\n", p->dp); - if (IPV4_GET_IPPROTO(p) == IPPROTO_TCP) { + if (PKT_IS_TCP(p)) { fprintf(aft->file_ctx->fp, "TCP SEQ: %"PRIu32"\n", TCP_GET_SEQ(p)); fprintf(aft->file_ctx->fp, "TCP ACK: %"PRIu32"\n", TCP_GET_ACK(p)); }