Author: metze Date: 2006-01-13 16:27:47 +0000 (Fri, 13 Jan 2006) New Revision: 12906
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12906 Log: return the correct nb_flags metze Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c Changeset: Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c =================================================================== --- branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c 2006-01-13 15:40:15 UTC (rev 12905) +++ branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c 2006-01-13 16:27:47 UTC (rev 12906) @@ -559,7 +559,7 @@ struct winsdb_record *rec_1b = NULL; const char **addresses; const char **addresses_1b = NULL; - uint16_t nb_flags = 0; /* TODO: ... */ + uint16_t nb_flags = 0; if (name->type == NBT_NAME_MASTER) { goto notfound; @@ -606,6 +606,7 @@ if (!addresses) { goto notfound; } + nb_flags |= NBT_NM_GROUP; goto found; } @@ -642,6 +643,12 @@ } } + if (rec->type == WREPL_TYPE_SGROUP) { + nb_flags |= NBT_NM_GROUP; + } else { + nb_flags |= (rec->node <<13); + } + found: nbtd_name_query_reply(nbtsock, packet, src, name, 0, nb_flags, addresses);
