diff options
author | Jeremy Allison <jra@samba.org> | 1998-06-08 19:09:47 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-06-08 19:09:47 +0000 |
commit | 8c6fe8870a72271a6acd1633efc362c59e283e19 (patch) | |
tree | f565f3f9a32e12ba3e2d790ed185464026a51d9a /source/nmbd | |
parent | 6d4d0dc7e65f946f09d127969ccbb4b51dfd6a4e (diff) | |
download | samba-8c6fe8870a72271a6acd1633efc362c59e283e19.tar.gz samba-8c6fe8870a72271a6acd1633efc362c59e283e19.tar.xz samba-8c6fe8870a72271a6acd1633efc362c59e283e19.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.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_mynames.c | 13 | ||||
-rw-r--r-- | source/nmbd/nmbd_namelistdb.c | 3 |
2 files changed, 11 insertions, 5 deletions
diff --git a/source/nmbd/nmbd_mynames.c b/source/nmbd/nmbd_mynames.c index 92ea3ea1543..2bb8f775d0a 100644 --- a/source/nmbd/nmbd_mynames.c +++ b/source/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(); } } } diff --git a/source/nmbd/nmbd_namelistdb.c b/source/nmbd/nmbd_namelistdb.c index 07d026e051e..897505ca2be 100644 --- a/source/nmbd/nmbd_namelistdb.c +++ b/source/nmbd/nmbd_namelistdb.c @@ -445,7 +445,8 @@ void add_samba_names_to_subnet(struct subnet_record *subrec) /* These names are added permanently (ttl of zero) and will NOT be refreshed. */ - if((subrec == unicast_subnet) || (subrec == wins_server_subnet)) + if((subrec == unicast_subnet) || (subrec == wins_server_subnet) || + (subrec == remote_broadcast_subnet) ) { struct subnet_record *bcast_subrecs; int i; |