From 7f10614e94e5e502b53e64519ac4b0476ab858ae Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 6 Feb 2005 08:27:12 +0000 Subject: r5252: - fixed nmblookup for the nbt api changes - added a simple WINS server name registration and query test (This used to be commit d56e68ebf584e50aa409d22b1ca7c9276abea962) --- source4/utils/nmblookup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/utils') diff --git a/source4/utils/nmblookup.c b/source4/utils/nmblookup.c index 824ce64298..3e3a4415d5 100644 --- a/source4/utils/nmblookup.c +++ b/source4/utils/nmblookup.c @@ -109,7 +109,8 @@ static void do_node_status(struct nbt_name_socket *nbtsock, io.in.name.type = 0; io.in.name.scope = NULL; io.in.dest_addr = addr; - io.in.timeout = 3; + io.in.timeout = 1; + io.in.retries = 2; status = nbt_name_status(nbtsock, nbtsock, &io); if (NT_STATUS_IS_OK(status)) { @@ -149,7 +150,8 @@ static NTSTATUS do_node_query(struct nbt_name_socket *nbtsock, io.in.dest_addr = addr; io.in.broadcast = broadcast; io.in.wins_lookup = options.wins_lookup; - io.in.timeout = 3; + io.in.timeout = 1; + io.in.retries = 2; status = nbt_name_query(nbtsock, nbtsock, &io); NT_STATUS_NOT_OK_RETURN(status); -- cgit