File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ _comp_cmd_iperf()
5
5
local cur prev words cword was_split comp_args
6
6
_comp_initialize -s -n : -- " $@ " || return
7
7
8
- local noargopts=' !(-*|*[ilpwMXbntLPTZCkOSAfIoFBcxy ]*)'
8
+ local noargopts=' !(-*|*[ilpwMXbntLPTZCkOAfIoFBcxy ]*)'
9
9
# shellcheck disable=SC2254
10
10
case $prev in
11
11
--help | --version | --interval | --len | --port | --window | --mss | --bandwidth | \
12
12
--num | --time | --listenport | --parallel | --ttl | --linux-congestion | --omit | \
13
13
--congestion | --bytes | --blockcount | --cport | --set-mss | --flowlabel | \
14
- --title | --tos | -- affinity | --rcv-timeout | --server-bitrate-limit | \
14
+ --title | --affinity | --rcv-timeout | --server-bitrate-limit | \
15
15
--idle-timeout | --time-skew-threshold | --xbind | --nstreams | --connect-timeout | \
16
16
--bitrate | --pacing-timer | --fq-rate | --length | --dscp | --extra-data | \
17
- --username | -${noargopts} [hvilpwMXbntLPTZCkOSA ])
17
+ --username | -${noargopts} [hvilpwMXbntLPTZCkOA ])
18
18
return
19
19
;;
20
20
--format | -${noargopts} f)
@@ -59,6 +59,10 @@ _comp_cmd_iperf()
59
59
_comp_compgen_filedir log
60
60
return
61
61
;;
62
+ --tos | -${noargopts} S)
63
+ _comp_compgen -- -W ' {0..255}'
64
+ return
65
+ ;;
62
66
--rsa-private-key-path | --rsa-public-key-path)
63
67
_comp_compgen_filedir pem
64
68
return
You can’t perform that action at this time.
0 commit comments