diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-14 01:00:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-14 01:01:43 +0200 |
commit | 51323288fc628a5cac50914df915545d685b793e (patch) | |
tree | 013681d930ff79f768b5499bb295cc618942a056 /src/resolve/resolved-dns-query.h | |
parent | 12e34d9d58ed4d97e7bdf8c23494c51ee5ec388e (diff) |
resolved: allow passing on which protocol, family and interface to look something up
Also, return on which protocol/family/interface we found something.
Diffstat (limited to 'src/resolve/resolved-dns-query.h')
-rw-r--r-- | src/resolve/resolved-dns-query.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-query.h b/src/resolve/resolved-dns-query.h index 50fa3a2fe2..13b3ee4f81 100644 --- a/src/resolve/resolved-dns-query.h +++ b/src/resolve/resolved-dns-query.h @@ -41,6 +41,9 @@ struct DnsQuery { Manager *manager; DnsQuestion *question; + uint64_t flags; + int ifindex; + DnsTransactionState state; unsigned n_cname_redirects; @@ -49,6 +52,8 @@ struct DnsQuery { /* Discovered data */ DnsAnswer *answer; int answer_ifindex; + int answer_family; + DnsProtocol answer_protocol; int answer_rcode; /* Bus client information */ @@ -68,7 +73,7 @@ struct DnsQuery { LIST_FIELDS(DnsQuery, queries); }; -int dns_query_new(Manager *m, DnsQuery **q, DnsQuestion *question); +int dns_query_new(Manager *m, DnsQuery **q, DnsQuestion *question, int family, uint64_t flags); DnsQuery *dns_query_free(DnsQuery *q); int dns_query_go(DnsQuery *q); |