diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-28 02:37:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:51 -0500 |
commit | c98c6aa5611f26ab591c50fcded1fc55e81a0d07 (patch) | |
tree | 599e3e9efc13a33535b50d40d9035c57a853dc19 /source4/torture/nbt | |
parent | e669d0c53d843e664fc5b3d8f3ebcb170ceb8f37 (diff) | |
download | samba-c98c6aa5611f26ab591c50fcded1fc55e81a0d07.tar.gz samba-c98c6aa5611f26ab591c50fcded1fc55e81a0d07.tar.bz2 samba-c98c6aa5611f26ab591c50fcded1fc55e81a0d07.zip |
r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000
- fixed ncacn_ip_tcp to use the generic async name resolution methods,
so NBT names now work (as requested several times by abartlet!)
- changed resolve_name() to take an event_context, so it doesn't cause
the whole process to block
- cleaned up the talloc_find_parent_bytype() calls to go via a cleaner
event_context_find() call
(This used to be commit b3d491b210a8b889a25efcb273e70fefbd01b7f7)
Diffstat (limited to 'source4/torture/nbt')
-rw-r--r-- | source4/torture/nbt/dgram.c | 2 | ||||
-rw-r--r-- | source4/torture/nbt/query.c | 2 | ||||
-rw-r--r-- | source4/torture/nbt/register.c | 2 | ||||
-rw-r--r-- | source4/torture/nbt/wins.c | 2 | ||||
-rw-r--r-- | source4/torture/nbt/winsbench.c | 2 | ||||
-rw-r--r-- | source4/torture/nbt/winsreplication.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c index d5fa014ce1..cbebb7564d 100644 --- a/source4/torture/nbt/dgram.c +++ b/source4/torture/nbt/dgram.c @@ -294,7 +294,7 @@ BOOL torture_nbt_dgram(void) name.scope = NULL; /* do an initial name resolution to find its IP */ - status = resolve_name(&name, mem_ctx, &address); + status = resolve_name(&name, mem_ctx, &address, event_context_find(mem_ctx)); if (!NT_STATUS_IS_OK(status)) { printf("Failed to resolve %s - %s\n", name.name, nt_errstr(status)); diff --git a/source4/torture/nbt/query.c b/source4/torture/nbt/query.c index 3764596f3f..f0522d52ae 100644 --- a/source4/torture/nbt/query.c +++ b/source4/torture/nbt/query.c @@ -113,7 +113,7 @@ BOOL torture_bench_nbt(void) make_nbt_name_server(&name, lp_parm_string(-1, "torture", "host")); /* do an initial name resolution to find its IP */ - status = resolve_name(&name, mem_ctx, &address); + status = resolve_name(&name, mem_ctx, &address, event_context_find(mem_ctx)); if (!NT_STATUS_IS_OK(status)) { printf("Failed to resolve %s - %s\n", name.name, nt_errstr(status)); diff --git a/source4/torture/nbt/register.c b/source4/torture/nbt/register.c index bca9fbeef4..b35808c844 100644 --- a/source4/torture/nbt/register.c +++ b/source4/torture/nbt/register.c @@ -163,7 +163,7 @@ BOOL torture_nbt_register(void) make_nbt_name_server(&name, strupper_talloc(mem_ctx, lp_parm_string(-1, "torture", "host"))); /* do an initial name resolution to find its IP */ - status = resolve_name(&name, mem_ctx, &address); + status = resolve_name(&name, mem_ctx, &address, NULL); if (!NT_STATUS_IS_OK(status)) { printf("Failed to resolve %s - %s\n", name.name, nt_errstr(status)); diff --git a/source4/torture/nbt/wins.c b/source4/torture/nbt/wins.c index b099f48476..852147786e 100644 --- a/source4/torture/nbt/wins.c +++ b/source4/torture/nbt/wins.c @@ -348,7 +348,7 @@ BOOL torture_nbt_wins(void) make_nbt_name_server(&name, lp_parm_string(-1, "torture", "host")); /* do an initial name resolution to find its IP */ - status = resolve_name(&name, mem_ctx, &address); + status = resolve_name(&name, mem_ctx, &address, NULL); if (!NT_STATUS_IS_OK(status)) { printf("Failed to resolve %s - %s\n", name.name, nt_errstr(status)); diff --git a/source4/torture/nbt/winsbench.c b/source4/torture/nbt/winsbench.c index 76763d3bf0..1bfc6f196c 100644 --- a/source4/torture/nbt/winsbench.c +++ b/source4/torture/nbt/winsbench.c @@ -279,7 +279,7 @@ BOOL torture_bench_wins(void) make_nbt_name_server(&name, lp_parm_string(-1, "torture", "host")); /* do an initial name resolution to find its IP */ - status = resolve_name(&name, mem_ctx, &address); + status = resolve_name(&name, mem_ctx, &address, event_context_find(mem_ctx)); if (!NT_STATUS_IS_OK(status)) { printf("Failed to resolve %s - %s\n", name.name, nt_errstr(status)); diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index 4e91deb84a..add34d4fa0 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -127,7 +127,7 @@ BOOL torture_nbt_winsreplication(void) make_nbt_name_server(&name, lp_parm_string(-1, "torture", "host")); /* do an initial name resolution to find its IP */ - status = resolve_name(&name, mem_ctx, &address); + status = resolve_name(&name, mem_ctx, &address, NULL); if (!NT_STATUS_IS_OK(status)) { printf("Failed to resolve %s - %s\n", name.name, nt_errstr(status)); |