aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
commitf44692ce0c924294a3a7bd54e474ba8061af34e2 (patch)
treebe3a3bed35f09ef5470f84fa140ae13ca53e7d17
parent8373c80503609c9bfd3e5caa66cdb2caf3473142 (diff)
downloadsrc-f44692ce0c924294a3a7bd54e474ba8061af34e2.tar.gz
src-f44692ce0c924294a3a7bd54e474ba8061af34e2.zip
ng_tag: Move totlen fully under #ifdef NG_TAG_DEBUG.
-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