mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-14 02:27:03 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -8,45 +8,40 @@ _ebtables()
|
|||
local table chain='s/^Bridge chain: \([^ ,]\{1,\}\).*$/\1/p' \
|
||||
targets='ACCEPT DROP CONTINUE RETURN'
|
||||
|
||||
if [[ ${words[@]} == *-t\ *filter* ]]; then
|
||||
table="-t filter"
|
||||
elif [[ ${words[@]} == *-t\ *nat* ]]; then
|
||||
table="-t nat"
|
||||
elif [[ ${words[@]} == *-t\ *mangle* ]]; then
|
||||
table="-t mangle"
|
||||
fi
|
||||
[[ "${words[*]}" =~ [[:space:]]-(t|-table=?)[[:space:]]*([^[:space:]]+) ]] \
|
||||
&& table="-t ${BASH_REMATCH[2]}"
|
||||
|
||||
case $prev in
|
||||
-*[AIDPFXLZ])
|
||||
COMPREPLY=( $( compgen -W '`"$1" $table -L 2>/dev/null | \
|
||||
command sed -ne "$chain"`' -- "$cur" ) )
|
||||
-!(-*)[AIDPFXLZ])
|
||||
COMPREPLY=( $(compgen -W '`"$1" $table -L 2>/dev/null | \
|
||||
command sed -ne "$chain"`' -- "$cur") )
|
||||
;;
|
||||
-*t)
|
||||
COMPREPLY=( $( compgen -W 'nat filter broute' -- "$cur" ) )
|
||||
-!(-*)t)
|
||||
COMPREPLY=( $(compgen -W 'nat filter broute' -- "$cur") )
|
||||
;;
|
||||
-j)
|
||||
-!(-*)j)
|
||||
if [[ "$table" == "-t filter" || -z "$table" ]]; then
|
||||
COMPREPLY=( $( compgen -W '$targets
|
||||
COMPREPLY=( $(compgen -W '$targets
|
||||
$("$1" $table -L 2>/dev/null | \
|
||||
command sed -n -e "s/INPUT\|OUTPUT\|FORWARD//" \
|
||||
-e "$chain")' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur") )
|
||||
elif [[ $table == "-t nat" ]]; then
|
||||
COMPREPLY=( $( compgen -W '$targets
|
||||
COMPREPLY=( $(compgen -W '$targets
|
||||
$("$1" $table -L 2>/dev/null | \
|
||||
command sed -n -e "s/OUTPUT|PREROUTING|POSTROUTING//" \
|
||||
-e "$chain")' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur") )
|
||||
elif [[ $table == "-t broute" ]]; then
|
||||
COMPREPLY=( $( compgen -W 'ACCEPT DROP
|
||||
COMPREPLY=( $(compgen -W 'ACCEPT DROP
|
||||
$("$1" $table -L 2>/dev/null | \
|
||||
command sed -n -e "s/BROUTING//" -e "$chain")' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur") )
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--802_3-sap --802_3-type --among-dst
|
||||
COMPREPLY=( $(compgen -W '--802_3-sap --802_3-type --among-dst
|
||||
--among-dst-file --among-src --among-src-file --append
|
||||
--arp-gratuitous --arp-htype --arp-ip-dst --arp-ip-src
|
||||
--arp-mac-dst --arp-mac-src --arp-opcode --arp-ptype --arpreply-mac
|
||||
|
@ -72,7 +67,7 @@ _ebtables()
|
|||
--stp-sender-prio --stp-type --table --to-destination --to-dst
|
||||
--to-source --to-src --ulog --ulog-cprange --ulog-nlgroup
|
||||
--ulog-prefix --ulog-qthreshold --version --vlan-encap --vlan-id
|
||||
--vlan-prio --zero' -- "$cur" ) )
|
||||
--vlan-prio --zero' -- "$cur") )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue