ctdb-tests: Add some testing for IPv4-mapped IPv6 address parsing
authorMartin Schwenke <martin@meltin.net>
Thu, 14 Mar 2019 05:32:02 +0000 (16:32 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Mar 2019 07:49:19 +0000 (07:49 +0000)
commit96a229b02812e3a989eb9b96f888e087d9e0969a
treed2e50601ef5e851f77308d9e19d1bb7df78963ab
parent02da215c10422d28fbe8646f5dca07448c12d7e1
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