From 4cf6bb3f4cbdab8a0cd57964be801cf676d2ec26 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 29 Jun 2012 13:15:46 +0200 Subject: [PATCH] afpacket: fix compilation in debug mode. --- src/source-af-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-af-packet.c b/src/source-af-packet.c index 36956b6fac..20062ee35e 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -255,7 +255,7 @@ static inline void AFPDumpCounters(AFPThreadVars *ptv, int forced) if (getsockopt(ptv->socket, SOL_PACKET, PACKET_STATISTICS, &kstats, &len) > -1) { SCLogDebug("(%s) Kernel: Packets %" PRIu32 ", dropped %" PRIu32 "", - tv->name, + ptv->tv->name, kstats.tp_packets, kstats.tp_drops); SCPerfCounterAddUI64(ptv->capture_kernel_packets, ptv->tv->sc_perf_pca, kstats.tp_packets); SCPerfCounterAddUI64(ptv->capture_kernel_drops, ptv->tv->sc_perf_pca, kstats.tp_drops);