ctdb-tests: Add some testing for IPv4-mapped IPv6 address parsing
commiteb63275483035550ac7760d83fbbdef357f3860b
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 08:14:08 +0000 (22 08:14 +0000)
tree44ce5749860bd9e9d6ca38df48c8e2b2a14ba27a
parent909cecd3606c0811bd91a631569441681f05e568
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