ctdb-tests: Add some testing for IPv4-mapped IPv6 address parsing
commit5f94bc518cc2ae8dfc24f4c9695580017ed8e0a5
authorMartin Schwenke <martin@meltin.net>
Thu, 14 Mar 2019 05:32:02 +0000 (14 16:32 +1100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Mar 2019 09:55:36 +0000 (22 09:55 +0000)
tree4e0dec710ba66675d41f66a2cd8825addc548275
parenteb4e66cd0ffbe6e0463fb9c0f4a19d26fc4f338f
ctdb-tests: Add some testing for IPv4-mapped IPv6 address parsing

ctdb_sock_addr values are hashed in some contexts.  This means that
all of the memory used for the ctdb_sock_addr should be consistent
regardless of how parsing is done.  The first 2 cases are just sanity
checks but the 3rd case involving an IPv4-mapped IPv6 address is the
real target of this test addition.

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

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@samba.org>
(cherry picked from commit d9286701cd9253bf3b42cac3d850ae8c23743e6d)
ctdb/tests/src/protocol_util_test.c