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