diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-03-21 04:12:36 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-03-21 04:12:36 +0000 |
commit | 0f2b15707ad0e41b786f0078f334b7782d63b8af (patch) | |
tree | bb03470ed124493d9c5b04ae66c5c10b2c39ee2b /source3/nmbd | |
parent | 8aa5177b7c5a4ceb15cd43716b1c728146b9e1cb (diff) | |
download | samba-0f2b15707ad0e41b786f0078f334b7782d63b8af.tar.gz samba-0f2b15707ad0e41b786f0078f334b7782d63b8af.tar.bz2 samba-0f2b15707ad0e41b786f0078f334b7782d63b8af.zip |
added option "enhanced browsing"
this allows users to disable the cross-subnet browse extensions that I
added to Samba a couple of years ago. This may be useful for getting
rid of empty workgroups.
(This used to be commit 978980050e599d3830d0474bc9a8003bfe227719)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 32d66d39fd..5e8e7e1ec6 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -460,7 +460,9 @@ static void process(void) * This will only work to a Samba WINS server. * (nmbd_browsesync.c) */ - collect_all_workgroup_names_from_wins_server(t); + if (lp_enhanced_browsing()) { + collect_all_workgroup_names_from_wins_server(t); + } /* * Go through the response record queue and time out or re-transmit @@ -477,7 +479,9 @@ static void process(void) /* * regularly sync with any other DMBs we know about */ - sync_all_dmbs(t); + if (lp_enhanced_browsing()) { + sync_all_dmbs(t); + } /* * clear the unexpected packet queue |