summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve/dns_ex.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/dns_ex.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/dns_ex.c')
-rw-r--r--source4/libcli/resolve/dns_ex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c
index 4bcf50a014..36d7269be4 100644
--- a/source4/libcli/resolve/dns_ex.c
+++ b/source4/libcli/resolve/dns_ex.c
@@ -43,6 +43,7 @@ struct dns_ex_state {
bool do_getaddrinfo;
bool do_fallback;
bool do_srv;
+ uint32_t flags;
struct nbt_name name;
struct socket_address **addrs;
pid_t child;
@@ -393,6 +394,7 @@ static void pipe_handler(struct event_context *ev, struct fd_event *fde,
struct composite_context *resolve_name_dns_ex_send(TALLOC_CTX *mem_ctx,
struct event_context *event_ctx,
void *privdata,
+ uint32_t flags,
struct nbt_name *name,
bool do_getaddrinfo,
bool do_fallback,
@@ -425,6 +427,7 @@ struct composite_context *resolve_name_dns_ex_send(TALLOC_CTX *mem_ctx,
state->do_getaddrinfo = do_getaddrinfo;
state->do_fallback = do_fallback;
state->do_srv = do_srv;
+ state->flags = flags;
state->child_fd = fd[0];
state->event_ctx = c->event_ctx;