On 2014-04-30 at 21:20:03 +0200, Michal Purzynski <[email protected]> wrote: > > >There's a fix now in the master branch of netsniff-ng.git [1]. Can you > >confirm that this fixes the issue for you? Does it influence the > >"losslessness" of your setup if you specify large ring sizes? > > > >[1] https://github.com/netsniff-ng/netsniff-ng/commit/f4821f > > > >Cheers > >Tobias > > > > I've tried to run netsniff-ng with 5GB of ring size, it started but > it's not writing anything to disk.
[...] > So it looks like the fix will have to be deeper - let me know when > you want me to test something. Thanks for testing! Can you try whether the patch below (or download from [1]) fixes your problem? [1] http://distanz.ch/patches/netsniff-ng/num_pkts_fix.patch diff --git a/netsniff-ng.c b/netsniff-ng.c index 52ec00f..e122631 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -817,7 +817,8 @@ static void walk_t3_block(struct block_desc *pbd, struct ctx *ctx, int sock, int *fd, unsigned long *frame_count) { uint8_t *packet; - int num_pkts = pbd->h1.num_pkts, i, ret; + uint32_t num_pkts = pbd->h1.num_pkts, i; + int ret; struct tpacket3_hdr *hdr; pcap_pkthdr_t phdr; struct sockaddr_ll *sll; -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
