r12609: - add some comments to a change that went in in the last 'fix the build'...
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Dec 2005 14:04:18 +0000 (14:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:49:04 +0000 (13:49 -0500)
- 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

index 39300f6e014df648d1f7b3c94693a290a5311a22..793e4671d52519e3053be068ab74da8ea34a4934 100644 (file)
@@ -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;
        }