summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve/bcast.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-13 20:50:36 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 20:26:38 +0100
commit7d0e78a52cfed797100696725611655227cf01ac (patch)
tree27a53cf8c534b559290720533e8984b278a2c988 /source4/libcli/resolve/bcast.c
parent937fdb8a7e348103708adbdafcff28b05cc1fda3 (diff)
downloadsamba-7d0e78a52cfed797100696725611655227cf01ac.tar.gz
s4:libcli/resolve: optionally return the name that belongs to the returned address
E.g. this helps for DNS CNAME and SRV results. metze
Diffstat (limited to 'source4/libcli/resolve/bcast.c')
-rw-r--r--source4/libcli/resolve/bcast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/resolve/bcast.c b/source4/libcli/resolve/bcast.c
index 285a612fb19..23c8e0ca56d 100644
--- a/source4/libcli/resolve/bcast.c
+++ b/source4/libcli/resolve/bcast.c
@@ -76,9 +76,10 @@ struct composite_context *resolve_name_bcast_send(TALLOC_CTX *mem_ctx,
*/
NTSTATUS resolve_name_bcast_recv(struct composite_context *c,
TALLOC_CTX *mem_ctx,
- struct socket_address ***addrs)
+ struct socket_address ***addrs,
+ char ***names)
{
- NTSTATUS status = resolve_name_nbtlist_recv(c, mem_ctx, addrs);
+ NTSTATUS status = resolve_name_nbtlist_recv(c, mem_ctx, addrs, names);
if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) {
/* this makes much more sense for a bcast name resolution
timeout */