summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-06 08:27:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:34 -0500
commit7f10614e94e5e502b53e64519ac4b0476ab858ae (patch)
tree59d5ee81bf277e2d5d600f1c531c81ab89898201 /source4/utils
parenta75e9a3ee91b83af9c0fa25e407bf63cd67cd343 (diff)
downloadsamba-7f10614e94e5e502b53e64519ac4b0476ab858ae.tar.gz
samba-7f10614e94e5e502b53e64519ac4b0476ab858ae.tar.bz2
samba-7f10614e94e5e502b53e64519ac4b0476ab858ae.zip
r5252: - fixed nmblookup for the nbt api changes
- added a simple WINS server name registration and query test (This used to be commit d56e68ebf584e50aa409d22b1ca7c9276abea962)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/nmblookup.c6
1 files changed, 4 insertions, 2 deletions
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);