summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_mynames.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-08 19:09:47 +0000
committerJeremy Allison <jra@samba.org>1998-06-08 19:09:47 +0000
commit072504985973be17f64a23aaaa99a8d3ef5b2ea6 (patch)
tree2ae45a9295de68a868e6f29b38c0d1cadc7edb3c /source3/nmbd/nmbd_mynames.c
parent1c185427fa1cd5fa54ce7781bb57ff1df3c99de4 (diff)
downloadsamba-072504985973be17f64a23aaaa99a8d3ef5b2ea6.tar.gz
samba-072504985973be17f64a23aaaa99a8d3ef5b2ea6.tar.bz2
samba-072504985973be17f64a23aaaa99a8d3ef5b2ea6.zip
Added code to add the Samba names onto the remote_broadcast subnet,
as NT 4.x does directed broadcast node status requests for the *<0x0> name. Jeremy. (This used to be commit 8c6fe8870a72271a6acd1633efc362c59e283e19)
Diffstat (limited to 'source3/nmbd/nmbd_mynames.c')
-rw-r--r--source3/nmbd/nmbd_mynames.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/nmbd/nmbd_mynames.c b/source3/nmbd/nmbd_mynames.c
index 92ea3ea154..2bb8f775d0 100644
--- a/source3/nmbd/nmbd_mynames.c
+++ b/source3/nmbd/nmbd_mynames.c
@@ -64,8 +64,7 @@ Exiting.\n", global_myworkgroup, subrec->subnet_name));
return False;
}
- /* Each subnet entry, except for the remote_announce_broadcast subnet
- and the wins_server_subnet has the magic Samba names. */
+ /* Each subnet entry, except for the wins_server_subnet has the magic Samba names. */
add_samba_names_to_subnet(subrec);
/* Register all our names including aliases. */
@@ -135,6 +134,12 @@ Exiting.\n", global_myworkgroup, subrec->subnet_name));
}
}
+ /*
+ * We need to add the Samba names to the remote broadcast subnet,
+ * as NT 4.x does directed broadcast requests to the *<0x0> name.
+ */
+ add_samba_names_to_subnet(remote_broadcast_subnet);
+
return True;
}
@@ -185,8 +190,8 @@ void refresh_my_names(time_t t)
*/
if(!is_refresh_already_queued( subrec, namerec))
refresh_name(subrec, namerec, NULL, NULL, NULL);
- namerec->death_time += lp_max_ttl();
- namerec->refresh_time += lp_max_ttl();
+ namerec->death_time += lp_max_ttl();
+ namerec->refresh_time += lp_max_ttl();
}
}
}