diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2019-03-26 17:48:39 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-05-01 01:10:42 +0000 |
commit | 2ee72cc6154370ed78bb1113ee0c9896d106d2f8 (patch) | |
tree | 4696b9d902617b50343d9ca0117e416713e33d52 /script/traffic_replay | |
parent | 35e52ebdd6498b2edcf57484a55439cb66319e45 (diff) | |
download | samba-2ee72cc6154370ed78bb1113ee0c9896d106d2f8.tar.gz |
traffic: load dns query from file and write stats to file
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May 1 01:10:42 UTC 2019 on sn-devel-184
Diffstat (limited to 'script/traffic_replay')
-rwxr-xr-x | script/traffic_replay | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/traffic_replay b/script/traffic_replay index 77eef7c0322..0d74c876d12 100755 --- a/script/traffic_replay +++ b/script/traffic_replay @@ -50,6 +50,8 @@ def main(): parser.add_option('--dns-rate', type='float', default=0, help='fire extra DNS packets at this rate') + parser.add_option('--dns-query-file', dest="dns_query_file", + help='A file contains DNS query list') parser.add_option('-B', '--badpassword-frequency', type='float', default=0.0, help='frequency of connections with bad passwords') @@ -403,6 +405,7 @@ def main(): creds=creds, accounts=accounts, dns_rate=opts.dns_rate, + dns_query_file=opts.dns_query_file, duration=opts.duration, latency_timeout=opts.latency_timeout, badpassword_frequency=opts.badpassword_frequency, |