Fix accounting of incoming octets.

Submitted by:	Alexander Motin <mav alkar.net>
This commit is contained in:
glebius 2007-01-10 15:04:10 +00:00
parent 845bc250ed
commit 523fae4cf8

View File

@ -558,10 +558,11 @@ ng_deflate_decompress(node_p node, struct mbuf *m, struct mbuf **resultp)
offset = 2;
}
priv->stats.InOctets += inlen;
/* Packet is compressed, so decompress. */
if (proto == PROT_COMPD) {
priv->stats.FramesComp++;
priv->stats.InOctets+=inlen;
/* Check sequence number. */
rseqnum = ntohs(((uint16_t *)(priv->inbuf + offset))[0]);