mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Make "nmbd bind explicit broadcast" on by default.
Fix a comment typo. Jeremy.
This commit is contained in:
parent
e425162933
commit
3f2415c9bf
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user