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;
if (!addresses) {
goto notfound;
}
+ nb_flags |= NBT_NM_GROUP;
goto found;
}
}
}
+ 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);