summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve/nbtlist.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-13 11:03:52 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 20:25:52 +0100
commit937fdb8a7e348103708adbdafcff28b05cc1fda3 (patch)
tree64400af2c9ead91e6352a219ceef5085debe0edd /source4/libcli/resolve/nbtlist.c
parentc8565c0e7acc6febf1b4015bde6baa1c5b7adddc (diff)
downloadsamba-937fdb8a7e348103708adbdafcff28b05cc1fda3.tar.gz
samba-937fdb8a7e348103708adbdafcff28b05cc1fda3.tar.bz2
samba-937fdb8a7e348103708adbdafcff28b05cc1fda3.zip
s4:libcli/resolve: pass down flags to the resolver backends
metze
Diffstat (limited to 'source4/libcli/resolve/nbtlist.c')
-rw-r--r--source4/libcli/resolve/nbtlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/resolve/nbtlist.c b/source4/libcli/resolve/nbtlist.c
index 76721e2af5..962dd420ab 100644
--- a/source4/libcli/resolve/nbtlist.c
+++ b/source4/libcli/resolve/nbtlist.c
@@ -34,6 +34,7 @@
#include "libcli/resolve/resolve.h"
struct nbtlist_state {
+ uint16_t flags;
struct nbt_name name;
struct nbt_name_socket *nbtsock;
int num_queries;
@@ -98,6 +99,7 @@ static void nbtlist_handler(struct nbt_name_request *req)
*/
struct composite_context *resolve_name_nbtlist_send(TALLOC_CTX *mem_ctx,
struct event_context *event_ctx,
+ uint32_t flags,
struct nbt_name *name,
const char **address_list,
struct interface *ifaces,
@@ -119,6 +121,8 @@ struct composite_context *resolve_name_nbtlist_send(TALLOC_CTX *mem_ctx,
if (composite_nomem(state, c)) return c;
c->private_data = state;
+ state->flags = flags;
+
c->status = nbt_name_dup(state, name, &state->name);
if (!composite_is_ok(c)) return c;