s3: Add support for AF_NETLINK addr notifications
authorVolker Lendecke <vl@samba.org>
Thu, 27 Jan 2011 11:58:22 +0000 (12:58 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 1 Feb 2011 12:24:00 +0000 (05:24 -0700)
commite2aeafa07c52e2e167f1ef932e54df5a5efddffe
treecc8ef10d00b31209c16c6a3544343358ae1d70d8
parentc4f92fff3af0d8763c6e5b5d4e84a782aa00dd18
s3: Add support for AF_NETLINK addr notifications

Via an AF_NETLINK socket, the Linux kernel can inform us when IP addresses are
added or dropped.

This will first be used in winbind, it was triggered by clustering with ctdb.
When winbind is connected to a domain controller and ctdb decides to move away
the IP address that winbind used locally for the connection to the DC, the next
request will run into a timeout. winbind sends out its request, but the
response will never arrive: The IP is gone.

It will also be interesting for more reliable online/offline detection, but
this is something for future winbind refactoring.
source3/Makefile.in
source3/configure.in
source3/lib/addrchange.c [new file with mode: 0644]
source3/lib/addrchange.h [new file with mode: 0644]