# dsniff util completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
#
# $Id: dsniff,v 1.2 2003/12/31 08:22:37 ianmacd Exp $

# arpspoof(8) completion


comp_include _get_cword _known_hosts


_arpspoof()
{
	local cur

	COMPREPLY=()
	cur=`_get_cword`
	prev=${COMP_WORDS[COMP_CWORD-1]}

	case "$prev" in
		-i)
			_interfaces
			return 0
			;;
		-t)
			_known_hosts
			return 0
			;;
	esac

	if [[ "$cur" == -* ]]; then
		COMPREPLY=( $( compgen -W '-i -t' -- $cur ) )
	else
		_known_hosts
	fi
} # _arpspoof()


