From: Victor Julien Date: Fri, 29 Jun 2012 11:15:46 +0000 (+0200) Subject: afpacket: fix compilation in debug mode. X-Git-Tag: suricata-1.3rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf6bb3f4cbdab8a0cd57964be801cf676d2ec26;p=thirdparty%2Fsuricata.git afpacket: fix compilation in debug mode. --- 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);