netsniff-ng: Increment pkts_seen after packet type check
commit4434db4bed874548cc5f3a28578d7b4758502d68
authorPaolo Abeni <pabeni@redhat.com>
Thu, 21 Jul 2016 14:42:22 +0000 (21 16:42 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 21 Jul 2016 15:08:16 +0000 (21 17:08 +0200)
tree326c09a4cb0046603e3e741162cb8e8e9d59e1da
parente864a07a07f3aeea2444b00ffc343523fecbab31
netsniff-ng: Increment pkts_seen after packet type check

Currently in receive_to_xmit() pkts_seen is incremented before the
packet type check, but failing the latter will cause the packet to be
ignored, pretty much as if it failed to pass the filter.

This change moves the accunting after the check, as is currently
done in both walk_t3_block() and recv_only_or_dump().

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c