1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

set recursion desired for bcast name query

(This used to be commit 53805112f1)
This commit is contained in:
Andrew Tridgell 1998-10-14 16:45:24 +00:00
parent ec32176198
commit bc747b8a07
2 changed files with 3 additions and 2 deletions

View File

@ -446,7 +446,7 @@ static BOOL resolve_bcast(char *name, struct in_addr *return_ip, int name_type)
/* Done this way to fix compiler error on IRIX 5.x */
sendto_ip = *iface_bcast(*iface_n_ip(i));
iplist = name_query(sock, name, name_type, True,
False, sendto_ip, &count, NULL);
True, sendto_ip, &count, NULL);
if(iplist != NULL) {
*return_ip = iplist[0];
free((char *)iplist);

View File

@ -218,7 +218,8 @@ int main(int argc,char *argv[])
sscanf(p+1,"%x",&lookup_type);
}
if ((ip_list = name_query(ServerFD,lookup,lookup_type,use_bcast,recursion_desired,
if ((ip_list = name_query(ServerFD,lookup,lookup_type,use_bcast,
use_bcast?True:recursion_desired,
bcast_addr,&count,NULL))) {
for (j=0;j<count;j++)
printf("%s %s<%02x>\n",inet_ntoa(ip_list[j]),lookup, lookup_type);