Dont count bytes being sent to a disconnected hook.
MFC after: 3 days
This commit is contained in:
parent
9055e6fd1b
commit
0598ef01ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127286
@ -351,11 +351,11 @@ ngt_rcvdata(hook_p hook, item_p item)
|
||||
}
|
||||
}
|
||||
/* Deliver frame out destination hook */
|
||||
dest->stats.outOctets += m->m_pkthdr.len;
|
||||
dest->stats.outFrames++;
|
||||
if (dest->hook)
|
||||
if (dest->hook) {
|
||||
dest->stats.outOctets += m->m_pkthdr.len;
|
||||
dest->stats.outFrames++;
|
||||
NG_FWD_ITEM_HOOK(error, item, dest->hook);
|
||||
else
|
||||
} else
|
||||
NG_FREE_ITEM(item);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user