]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-common: Use if_nametoindex(3) to check if interface exists
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 12 Jan 2026 07:05:23 +0000 (18:05 +1100)
committerVolker Lendecke <vl@samba.org>
Mon, 9 Feb 2026 11:17:41 +0000 (11:17 +0000)
commitd19ad0bec55dccfc1891c320a2fed41cc139927f
tree60b66dde36b7260309f898ec774df941b6593032
parentd2f93469d50916d355d718d48e83768af6997052
ctdb-common: Use if_nametoindex(3) to check if interface exists

This is much simpler than looping through the array.  It will also
find an interface by altname, which could be very useful.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/common/system.c