summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-04-09 19:00:23 +0000
committerpjd <pjd@FreeBSD.org>2006-04-09 19:00:23 +0000
commitb9b788a5760c97968cafc3828641761cfe07fae2 (patch)
treece1a1f67abb951675b938de8226cfbce38cfb561 /sys/netipsec
parent183ce347d6597ab18d3dfac208393f615011e5d5 (diff)
downloadFreeBSD-src-b9b788a5760c97968cafc3828641761cfe07fae2.zip
FreeBSD-src-b9b788a5760c97968cafc3828641761cfe07fae2.tar.gz
Be consistent with the rest of the code.
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/xform_esp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/xform_esp.c b/sys/netipsec/xform_esp.c
index 993ece6..8a87f45 100644
--- a/sys/netipsec/xform_esp.c
+++ b/sys/netipsec/xform_esp.c
@@ -329,7 +329,7 @@ esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff)
}
/* Update the counters */
- espstat.esps_ibytes += m->m_pkthdr.len - skip - hlen - alen;
+ espstat.esps_ibytes += m->m_pkthdr.len - (skip + hlen + alen);
/* Find out if we've already done crypto */
for (mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_CRYPTO_DONE, NULL);
OpenPOWER on IntegriCloud