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