summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netsniff-ng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 4cfabc1..ab99bb1 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -480,11 +480,11 @@ static void receive_to_xmit(struct ctx *ctx)
hdr_in = rx_ring.frames[it_in].iov_base;
in = ((uint8_t *) hdr_in) + hdr_in->tp_h.tp_mac;
- ctx->pkts_seen++;
-
if (skip_packet(ctx, &hdr_in->s_ll))
goto next;
+ ctx->pkts_seen++;
+
hdr_out = tx_ring.frames[it_out].iov_base;
out = ((uint8_t *) hdr_out) + TPACKET2_HDRLEN - sizeof(struct sockaddr_ll);