register_ip.s_addr = name_ip.s_addr; /* Fix this ... */
- bzero((char *)&p, sizeof(p));
+ memset((char *)&p, '\0', sizeof(p));
*count = 0;
}
- bzero((char *)nmb->additional, sizeof(struct res_rec));
+ memset((char *)nmb->additional, '\0', sizeof(struct res_rec));
nmb->additional->rr_name = nmb->question.question_name;
nmb->additional->rr_type = RR_TYPE_NB;
DEBUG(3,("resolve_lmhosts: Attempting lmhosts lookup for name %s<0x%x>\n", name, name_type));
- fp = startlmhosts( LMHOSTSFILE );
+ fp = startlmhosts(dyn_LMHOSTSFILE);
if(fp) {
while (getlmhostsent(fp, lmhost_name, &name_type2, &return_ip)) {
if (strequal(name, lmhost_name) &&
{
return internal_resolve_name(group, pdc_only ? 0x1B : 0x1C, ip_list, count);
}
+
+/********************************************************
+ Get the IP address list of the Domain Master Browsers
+ ********************************************************/
+BOOL get_dmb_list(struct in_addr **ip_list, int *count)
+{
+ return internal_resolve_name( MSBROWSE, 0x1, ip_list, count);
+}