ctdb-tests: Fix tickle sniffing for IPv4
authorMartin Schwenke <martin@meltin.net>
Sat, 20 Dec 2014 08:54:13 +0000 (19:54 +1100)
committerMichael Adam <obnox@samba.org>
Fri, 9 Jan 2015 01:03:40 +0000 (02:03 +0100)
commit82aa6bd2f27775f3fd82931d613379d5d618ef70
tree48f096b42587af1cbcd854aa7ee7bfc0f6cfebfc
parent2c3672f4249a7d3453b7e82ca96b4cd666aae709
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>
ctdb/tests/complex/scripts/local.bash