From eaecb4c9929c5cf7361d9f7bbe6e35353095f5b2 Mon Sep 17 00:00:00 2001 From: LouisSinan Date: Thu, 24 May 2018 14:09:55 +0200 Subject: [PATCH] nfreplay - Distribution accross time "z" parameter : Lines are sent with their "real distribution" acrross time (with a speed coefficient) -z 1 --> 5 minutes of records will be sent in 5 minutes -z 20 --> 5 minutes of record will be sent in 5/20 = 0.25 minute --- bin/nfreplay.c | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/bin/nfreplay.c b/bin/nfreplay.c index 76a29fb..0aaf2e6 100644 --- a/bin/nfreplay.c +++ b/bin/nfreplay.c @@ -108,7 +108,7 @@ static void usage(char *name); static void send_blast(unsigned int delay ); static void send_data(char *rfile, time_t twin_start, time_t twin_end, uint32_t count, - unsigned int delay, int confirm, int netflow_version); + unsigned int delay, int confirm, int netflow_version, int distribution); static int FlushBuffer(int confirm); @@ -133,6 +133,7 @@ static void usage(char *name) { "-r \tread from file. default: stdin\n" "-f \tfilter syntaxfile\n" "-v \tUse netflow version to send flows. Either 5 or 9\n" + "-z \tSimulate real time distribution with coefficient\n" "-t