1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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 9dfbce5f34)
This commit is contained in:
Stefan Metzmacher 2005-12-30 14:04:18 +00:00 committed by Gerald (Jerry) Carter
parent d4de4c2d21
commit bb8a5a2a1e

View 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;
}