diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-07 06:55:36 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-07 06:55:36 +0000 |
commit | b563be824b8c3141c49558eced7829b48d4ab26f (patch) | |
tree | 8e7ce416231383522648f9af6d3f60fc9d820ab0 /source/nmbd/nmbd_become_lmb.c | |
parent | bf9b1328c5843eb217eff4ca05645498de2def82 (diff) | |
download | samba-b563be824b8c3141c49558eced7829b48d4ab26f.tar.gz |
this looks like a big commit, but it isn't really :)
This fixes our netbios scope handling. We now have a 'netbios scope' option
in smb.conf and the scope option is removed from make_nmb_name()
this was prompted by a bug in our PDC finding code where it didn't append
the scope to the query of the '*' name.
Diffstat (limited to 'source/nmbd/nmbd_become_lmb.c')
-rw-r--r-- | source/nmbd/nmbd_become_lmb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/nmbd/nmbd_become_lmb.c b/source/nmbd/nmbd_become_lmb.c index f3fa69132e9..31c67ae7f3f 100644 --- a/source/nmbd/nmbd_become_lmb.c +++ b/source/nmbd/nmbd_become_lmb.c @@ -25,7 +25,6 @@ #include "includes.h" extern int DEBUGLEVEL; -extern pstring scope; extern pstring global_myname; extern uint16 samba_nb_type; /* Samba's NetBIOS name type. */ @@ -126,7 +125,7 @@ in workgroup %s on subnet %s\n", * master browser. */ - make_nmb_name(&nmbname, work->work_group, 0x1d, scope); + make_nmb_name(&nmbname, work->work_group, 0x1d); remove_permanent_name_from_unicast( subrec, &nmbname); @@ -208,7 +207,7 @@ static void release_1d_name( struct subnet_record *subrec, char *workgroup_name, struct nmb_name nmbname; struct name_record *namerec; - make_nmb_name(&nmbname, workgroup_name, 0x1d, scope); + make_nmb_name(&nmbname, workgroup_name, 0x1d); if((namerec = find_name_on_subnet( subrec, &nmbname, FIND_SELF_NAME))!=NULL) { struct userdata_struct *userdata; @@ -308,7 +307,7 @@ in workgroup %s on subnet %s\n", release_1d_name( subrec, work->work_group, force_new_election); /* Deregister any browser names we may have. */ - make_nmb_name(&nmbname, MSBROWSE, 0x1, scope); + make_nmb_name(&nmbname, MSBROWSE, 0x1); if((namerec = find_name_on_subnet( subrec, &nmbname, FIND_SELF_NAME))!=NULL) { release_name(subrec, namerec, |