Applied to the current rc1 tar.gz archive. Thanks Emmanuel!
-- You received this message because you are subscribed to the Google Groups "netsniff-ng" group.
To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] http://netsniff-ng.org
commit 700038f5f166b910aa205af25531b6e3fec388fb Author: Emmanuel Roullit <[email protected]> Date: Sun Sep 19 08:52:55 2010 +0200 Fix packet printing. Mark all pkt as unknown diff --git a/src/tx_ring.c b/src/tx_ring.c index 552db5c..d08d31e 100644 --- a/src/tx_ring.c +++ b/src/tx_ring.c @@ -281,13 +281,19 @@ static void *fill_virt_tx_ring_thread(void *packed) break; } - versatile_print(buff, header); + /* Prints all packets as unknown */ + if (ptd->sd->print_pkt) + ptd->sd->print_pkt(buff, header, 5); } printf("Success? %u\n", success); if (success == 0) goto out; loop = 0; - versatile_print(buff, header); + + /* Prints all packets as unknown */ + if (ptd->sd->print_pkt) + ptd->sd->print_pkt(buff, header, 5); + break; case TP_STATUS_WRONG_FORMAT:
