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 14:11:06 +0000 (15:11 +0100)
commit80acca1ebf8bd8d0350d63277e3143416372fb83
tree715013c338e29d5566a86f3cf2ee4b36d5f72cca
parentf9af242886ac014baa3247bfdc1fe8be6cb8366e
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]