netsniff-ng: Account skipped packets as 'seen' and 'dropped'
commitda6e1d1108ad22d68ccbff07fb569afebb265bf7
authorPaolo Abeni <pabeni@redhat.com>
Wed, 27 Jul 2016 13:59:08 +0000 (27 15:59 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 29 Jul 2016 08:08:02 +0000 (29 10:08 +0200)
tree9e5ff1b32d7dae4f3a4535ce4211a63e99b76b03
parent0c85ef0111b36b14c53898780006d78a2727f360
netsniff-ng: Account skipped packets as 'seen' and 'dropped'

The packets filtered out due to pkt_type are incoming packets
effectively dropped and should be accounted as such.
This patch explicitly accounts for the skipped packets number in
skip_packet() and adds this number to the 'drop' and 'seen'
counters in update_rx_stats().

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