Make "nmbd bind explicit broadcast" on by default.
authorJeremy Allison <jra@samba.org>
Mon, 8 Feb 2010 22:35:02 +0000 (14:35 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 8 Feb 2010 22:35:02 +0000 (14:35 -0800)
Fix a comment typo.

Jeremy.

docs-xml/smbdotconf/misc/nmbdbindexplicitbroadcast.xml
source3/nmbd/nmbd_packets.c
source3/param/loadparm.c

index f3285944d52db1ae5c2c6d2a7e65b72e0bcaeb8b..3a44a69d5438b8678203d1f4c2352c369fded3f4 100644 (file)
@@ -5,12 +5,13 @@
                 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>
-       This option allows you to setup <citerefentry><refentrytitle>nmbd</refentrytitle>
-       <manvolnum>8</manvolnum></citerefentry> to explicit bind to the
-       broadcast address of the local subnets. This is only useful in
-       combination with the <smbconfoption name="socket address"/> option.
+       This option causes <citerefentry><refentrytitle>nmbd</refentrytitle>
+       <manvolnum>8</manvolnum></citerefentry> to explicitly bind to the
+       broadcast address of the local subnets. This is needed to make nmbd
+       work correctly in combination with the <smbconfoption name="socket address"/> option.
+       You should not need to unset this option.
        </para>
 </description>
 
-<value type="default">no</value>
+<value type="default">yes</value>
 </samba:parameter>
index 013ebf65897cbd95419f752040a8f260973b3c00..55fd24dc3514c4753945cd710ae4ae52c2ac9bf3 100644 (file)
@@ -1863,7 +1863,7 @@ bool listen_for_packets(bool run_election)
                        client_fd = ClientNMB;
                        client_port = global_nmb_port;
                } else {
-                       /* Port 137 */
+                       /* Port 138 */
                        packet_type = DGRAM_PACKET;
                        packet_name = "dgram";
                        client_fd = ClientDGRAM;
index d2da10687f6054675ebd4ed467e0d16f098d7767..8308e995660629a2684e624da794f264705e171e 100644 (file)
@@ -4968,6 +4968,11 @@ static void init_globals(bool first_time_only)
        string_set(&Globals.szCacheDir, get_dyn_CACHEDIR());
        string_set(&Globals.szPidDir, get_dyn_PIDDIR());
        string_set(&Globals.szSocketAddress, "0.0.0.0");
+       /*
+        * By default support explicit binding to broadcast
+        * addresses.
+        */
+       Globals.bNmbdBindExplicitBroadcast = true;
 
        if (asprintf(&s, "Samba %s", samba_version_string()) < 0) {
                smb_panic("init_globals: ENOMEM");