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)
committerAmitay Isaacs <amitay@samba.org>
Fri, 15 Mar 2019 05:17:13 +0000 (05:17 +0000)
commitd9286701cd9253bf3b42cac3d850ae8c23743e6d
treecc426dbebd65c378e7fd0988e64da2f867f9d017
parent539b5ff32b32b7c75dfaaa119e41f5af6ff1e6fc
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>
ctdb/tests/src/protocol_util_test.c