From bb8a5a2a1e7a881b18b91b0a1fe925c449c84470 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Dec 2005 14:04:18 +0000 Subject: 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) --- source4/nbt_server/query.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/nbt_server/query.c') 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; } -- cgit