s3: Add support for AF_NETLINK addr notifications
commit6d7c96d0b1ea2f5178bf6ad2f3633d13bde250d0
authorVolker Lendecke <vl@samba.org>
Thu, 27 Jan 2011 11:58:22 +0000 (27 12:58 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 1 Feb 2011 15:33:18 +0000 (1 16:33 +0100)
tree68b99814fa99169f003ffc9dd93fc81b8bdbb6b8
parenta2eb55e2d060464146186e47a17ac8d2786a3fa3
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]