- iptables fixes from Alexander Davydenko <mba@cs.tu-berlin.de>
This commit is contained in:
parent
01d8a3e11a
commit
de18acbeaa
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05b
|
# bash_completion - some programmable completion functions for bash 2.05b
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.631 2003/10/07 06:45:03 ianmacd Exp $
|
# $Id: bash_completion,v 1.632 2003/10/07 06:47:55 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -2495,7 +2495,7 @@ _iptables()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-*[AIDPFXL])
|
-*[AIDRPFXLZ])
|
||||||
COMPREPLY=( $( compgen -W '`iptables $table -nL | \
|
COMPREPLY=( $( compgen -W '`iptables $table -nL | \
|
||||||
sed -ne "s/^Chain \([^ ]\+\).*$/\1/p"`' -- $cur ) )
|
sed -ne "s/^Chain \([^ ]\+\).*$/\1/p"`' -- $cur ) )
|
||||||
;;
|
;;
|
||||||
@ -2521,6 +2521,14 @@ _iptables()
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if [[ "$cur" == -* ]]; then
|
||||||
|
COMPREPLY=( $( compgen -W '-i -o -s -d -p -f -m --append \
|
||||||
|
--delete --insert --replace --list --flush --zero --new \
|
||||||
|
--delete-chain --policy --rename-chain --proto --source \
|
||||||
|
--destination --in-interface --jump --match --numeric \
|
||||||
|
--out-interface --table --verbose --line-numbers --exact \
|
||||||
|
--fragment --modprobe= --set-counters --version' -- "$cur") )
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user