mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Iperf interface change'
This commit is contained in:
parent
ea91a88577
commit
a059f1565c
1 changed files with 4 additions and 4 deletions
|
@ -22,16 +22,16 @@ function run_test(server,proto,mode,updown)
|
|||
local port = t[ math.random( #t ) ]
|
||||
if proto == "ipv4" then
|
||||
if updown == "upload" then
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -4 -p %s -O 3 -J" % {ut.shellquote(addr),port})
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -4 -p %s -O 3 -t 6 -J" % {ut.shellquote(addr),port})
|
||||
else
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -4 -p %s -O 3 -R -J" % {ut.shellquote(addr),port})
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -4 -p %s -O 3 -R -t 6 -J" % {ut.shellquote(addr),port})
|
||||
end
|
||||
--iperf = io.popen("iperf3 -c bouygues.iperf.fr -P 10 -4 -J")
|
||||
else
|
||||
if updown == "upload" then
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -6 -p %s -O 3 -J" % {ut.shellquote(addr),port})
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -6 -p %s -O 3 -t 6 -J" % {ut.shellquote(addr),port})
|
||||
else
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -6 -p %s -O 3 -R -J" % {ut.shellquote(addr),port})
|
||||
iperf = io.popen("iperf3 -c %s -P 10 -6 -p %s -O 3 -R -t 6 -J" % {ut.shellquote(addr),port})
|
||||
end
|
||||
end
|
||||
if iperf then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue