summaryrefslogtreecommitdiffstats
path: root/source/nmbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-21 04:12:36 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-21 04:12:36 +0000
commit978980050e599d3830d0474bc9a8003bfe227719 (patch)
tree53b79928cff0619eed542bab1d846f93b6e8d9a9 /source/nmbd
parent0d2e9e4d32b038c1a71e3a625db46876294e3abf (diff)
downloadsamba-978980050e599d3830d0474bc9a8003bfe227719.tar.gz
samba-978980050e599d3830d0474bc9a8003bfe227719.tar.xz
samba-978980050e599d3830d0474bc9a8003bfe227719.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.
Diffstat (limited to 'source/nmbd')
-rw-r--r--source/nmbd/nmbd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c
index 32d66d39fd5..5e8e7e1ec66 100644
--- a/source/nmbd/nmbd.c
+++ b/source/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