Start implementing support for ipv6.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 14 May 2008 05:47:47 +0000 (15:47 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 14 May 2008 05:47:47 +0000 (15:47 +1000)
commit909ff219e0c1de995feb18547d18864d02695161
tree6492f01260787a8ad23eed2f2647dad209e3ff72
parent2bc0e5a69f42403eaf0229f26e9ef4f80027a17f
Start implementing support for ipv6.

This enhances the framework for sending tcp tickles to be able to send ipv6 tickles as well.

Since we can not use one single RAW socket to send both handcrafted ipv4 and ipv6 packets, instead of always opening TWO sockets, one ipv4 and one ipv6 we get rid of the helper ctdb_sys_open_sending_socket() and just open (and close)  a raw socket of the appropriate type inside ctdb_sys_send_tcp().
We know which type of socket v4/v6 to use based on the sin_family of the destination address.

Since ctdb_sys_send_tcp() opens its own socket  we no longer nede to pass a socket
descriptor as a parameter.  Get rid of this redundant parameter and fixup all callers.

(This used to be ctdb commit 406a2a1e364cf71eb15e5aeec3b87c62f825da92)
ctdb/common/ctdb_util.c
ctdb/common/system_aix.c
ctdb/common/system_linux.c
ctdb/include/ctdb_private.h
ctdb/server/ctdb_takeover.c
ctdb/tools/ctdb.c