diff options
author | Martin Schwenke <martin@meltin.net> | 2014-12-20 19:54:13 +1100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-01-09 02:03:40 +0100 |
commit | 82aa6bd2f27775f3fd82931d613379d5d618ef70 (patch) | |
tree | 48f096b42587af1cbcd854aa7ee7bfc0f6cfebfc /ctdb | |
parent | 2c3672f4249a7d3453b7e82ca96b4cd666aae709 (diff) | |
download | samba-82aa6bd2f27775f3fd82931d613379d5d618ef70.tar.gz samba-82aa6bd2f27775f3fd82931d613379d5d618ef70.tar.xz samba-82aa6bd2f27775f3fd82931d613379d5d618ef70.zip |
ctdb-tests: Fix tickle sniffing for IPv4
tcptickle_sniff_start() assumes that if $dst contains a ': then it
should use the IPv6 sniffing code. However, $dst is a socket, so has
a trailing ":<port>".
Strip the trailing ":<port>" before checking for ':' as a marker for
an IPv6 address.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/tests/complex/scripts/local.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/complex/scripts/local.bash b/ctdb/tests/complex/scripts/local.bash index 9c41af289b..2dd62a8fef 100644 --- a/ctdb/tests/complex/scripts/local.bash +++ b/ctdb/tests/complex/scripts/local.bash @@ -185,7 +185,7 @@ tcptickle_sniff_start () local src="$1" local dst="$2" - case "$dst" in + case "${dst%:*}" in *:*) tcp6tickle_sniff_start "$src" "$dst" ;; *) tcp4tickle_sniff_start "$src" "$dst" ;; esac |