ctdb-scripts: Strip square brackets when gathering connection info
commit103d94566f15d2fdf880cfb5f654896c67d02a42
authorMartin Schwenke <martin@meltin.net>
Fri, 13 Dec 2019 00:09:04 +0000 (13 11:09 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Jan 2020 08:30:24 +0000 (14 08:30 +0000)
tree22bef1c3cf95de6f8251aa4a7d2fe6eedbf06f9f
parent890513b5b3cf8c8b14fc21c1f095b9d4a3f94e04
ctdb-scripts: Strip square brackets when gathering connection info

ss added square brackets around IPv6 addresses in versions > 4.12.0
via commit aba9c23a6e1cb134840c998df14888dca469a485.  CentOS 7 added
this feature somewhere mid-release.  So, backward compatibility is
obviously needed.

As per the comment protocol/protocol_util.c should probably print and
parse such square brackets.  However, for backward compatibility the
brackets would have to be stripped in both places in
update_tickles()...  or added to the ss output when missing.  Best to
leave this until we have a connection tracking daemon.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14227

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 693080abe4d8bec96280af5a6aa668251a98ec5d)
ctdb/config/functions