nmbd: Send waiting status to systemd.
authorAndreas Schneider <asn@samba.org>
Tue, 16 Sep 2014 16:03:51 +0000 (18:03 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 17 Sep 2014 11:16:43 +0000 (13:16 +0200)
This tells the Administrator what's going on and we should log that IPv6
is not supported.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10816

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 17 13:16:43 CEST 2014 on sn-devel-104

source3/nmbd/nmbd_subnetdb.c

index 311a240923e658d69107eaa2e6454a58244e9bcd..6c483af26a0fa1fde717fae34341a34e53fc644a 100644 (file)
@@ -247,8 +247,11 @@ bool create_subnets(void)
 
        /* Only count IPv4, non-loopback interfaces. */
        if (iface_count_v4_nl() == 0) {
-               DEBUG(0,("create_subnets: No local IPv4 non-loopback interfaces !\n"));
-               DEBUG(0,("create_subnets: Waiting for an interface to appear ...\n"));
+               daemon_status("nmbd",
+                             "No local IPv4 non-loopback interfaces "
+                             "available, waiting for interface ...");
+               DEBUG(0,("NOTE: NetBIOS name resolution is not supported for "
+                        "Internet Protocol Version 6 (IPv6).\n"));
        }
 
        /* We only count IPv4, non-loopback interfaces here. */