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)
commit406a2a1e364cf71eb15e5aeec3b87c62f825da92
treeb25b69594bb369f28c0659f6f7988c8032e1b92e
parent93b98838824fae5f47e4ed6b95ae9e4e7597bec3
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.
common/ctdb_util.c
common/system_aix.c
common/system_linux.c
include/ctdb_private.h
server/ctdb_takeover.c
tools/ctdb.c