From bc747b8a077d22344aa03bbba202f5137b59284d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 14 Oct 1998 16:45:24 +0000 Subject: set recursion desired for bcast name query (This used to be commit 53805112f1a301f77cda93b68e6fa3054895f20f) --- source3/libsmb/namequery.c | 2 +- source3/utils/nmblookup.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 500618bd8a..e95302fcd0 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -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); diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index 477d6590f0..971715f327 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -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\n",inet_ntoa(ip_list[j]),lookup, lookup_type); -- cgit