1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb
Martin Schwenke cc99d0047d ctdb-common: Add functions for local IP address checking
This is a wrapper around getifaddrs(2), which is in libreplace, so
should always be available.

Some users want to set net.ipv4.ip_nonlocal_bind = 1.  So, CTDB needs
a way of testing if public IPs are present, without using bind(2).

Doing all of this unconditionally in ctdb_sys_have_ip() will be
inefficient in the recovery daemon's local IP verification if there
are a lot of IP addresses.  Split it this way so the interface
information can be retrieved once and used multiple times.

This doesn't appear to need IP canonicalisation for IPv4-mapped IPv6
addresses.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
2024-10-07 15:58:38 +00:00
..
client ctdb-client: Remove unused function 2024-03-06 06:05:38 +00:00
common ctdb-common: Add functions for local IP address checking 2024-10-07 15:58:38 +00:00
conf ctdb-conf: add boolean arg for verbosity when loading config 2024-08-06 00:43:36 +00:00
config ctdb: Fix a typo 2024-09-20 17:13:37 +00:00
doc ctdb-scripts: Add support for backing up persistent TDBs 2024-08-29 22:48:33 +00:00
event ctdb-conf: add boolean arg for verbosity when loading config 2024-08-06 00:43:36 +00:00
failover ctdb-failover: Add ctdb_smnotify_helper 2024-08-29 22:48:33 +00:00
ib ctdb-ib: Remove a use of ctdb_set_error() 2024-08-20 13:06:33 +00:00
include ctdb: Change the ctdb_vfork_exec prototype to const char*const* 2024-09-22 09:36:36 +00:00
protocol ctdb-protocol: Add function ctdb_sock_addr_from_sockaddr() 2024-10-07 15:58:38 +00:00
server ctdb: Use str_list_add_printf() in lock_helper_args() 2024-09-22 10:44:59 +00:00
tcp ctdb-tcp: Remove a use of ctdb_addr_to_str() 2024-08-20 14:24:14 +00:00
tests ctdb-tests: Fix test failure when tests are installed 2024-10-06 11:07:05 +00:00
tools ctdb-scripts: Remove unused variable NFS_HOSTNAME 2024-08-29 22:48:33 +00:00
utils ctdb-scripts: Use nfs-utils' sm-notify instead of CTDB's smnotify 2024-08-29 22:48:33 +00:00
.bzrignore
.gitignore ctdb-scripts: Use nfs-utils' sm-notify instead of CTDB's smnotify 2024-08-29 22:48:33 +00:00
configure configure/Makefile: export PYTHONHASHSEED=1 in all 'configure/Makefile' scripts 2022-03-29 22:32:32 +00:00
configure.rpm ctdb-packaging: Update library versions to upstream versions 2018-12-18 07:12:09 +01:00
COPYING
Makefile Python: remove pydoctor 2023-02-02 21:15:54 +00:00
README
wscript ctdb-common: Add functions for local IP address checking 2024-10-07 15:58:38 +00:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.