summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-30 14:04:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:04 -0500
commitbb8a5a2a1e7a881b18b91b0a1fe925c449c84470 (patch)
tree3366f23b15223b4511e7152132b36d91e872e82c
parentd4de4c2d210d2e8c9b5aedf70695594809ad6a0b (diff)
downloadsamba-bb8a5a2a1e7a881b18b91b0a1fe925c449c84470.tar.gz
samba-bb8a5a2a1e7a881b18b91b0a1fe925c449c84470.tar.bz2
samba-bb8a5a2a1e7a881b18b91b0a1fe925c449c84470.zip
r12609: - add some comments to a change that went in in the last 'fix the build' commit
- we need to reply to name queries with the recursion desired bit set, to pass the multi homed challenge, when registering our interfaces with a wins server metze (This used to be commit 9dfbce5f34c9e8b55c902fefc8dfaf53f19df9c2)
-rw-r--r--source4/nbt_server/query.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/nbt_server/query.c b/source4/nbt_server/query.c
index 39300f6e01..793e4671d5 100644
--- a/source4/nbt_server/query.c
+++ b/source4/nbt_server/query.c
@@ -71,9 +71,15 @@ void nbtd_request_query(struct nbt_name_socket *nbtsock,
return;
}
+ /*
+ * normally we should forward all queries with the
+ * recursion desired flag to the wins server, but this
+ * breaks are winsclient code, when doing mhomed registrations
+ */
if (!(packet->operation & NBT_FLAG_BROADCAST) &&
(packet->operation & NBT_FLAG_RECURSION_DESIRED) &&
- (iname->nb_flags & NBT_NM_GROUP)) {
+ (iname->nb_flags & NBT_NM_GROUP) &&
+ lp_wins_support()) {
nbtd_winsserver_request(nbtsock, packet, src);
return;
}