aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netgraph/ng_tag.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netgraph/ng_tag.c b/sys/netgraph/ng_tag.c
index d46c463fc53a..8c93f994e993 100644
--- a/sys/netgraph/ng_tag.c
+++ b/sys/netgraph/ng_tag.c
@@ -509,13 +509,15 @@ ng_tag_rcvdata(hook_p hook, item_p item)
uint32_t cookie;
hinfo_p dhip;
hook_p dest;
+#ifdef NG_TAG_DEBUG
int totlen;
+#endif
int found = 0, error = 0;
m = NGI_M(item); /* 'item' still owns it.. we are peeking */
+#ifdef NG_TAG_DEBUG
totlen = m->m_pkthdr.len;
-#ifdef NG_TAG_DEBUG
hip->stats.recvFrames++;
hip->stats.recvOctets += totlen;
#endif