chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/: Pass the wanted query's type code to adns__internal_submit.
[adns.git]
/
src
/
internal.h
diff --git
a/src/internal.h
b/src/internal.h
index 5f8892e40b07bd58d776ca7cbeb6d1a73034d111..29f4dd23e7735c077ee8f02323f4e5ab8f95bf3f 100644
(file)
--- a/
src/internal.h
+++ b/
src/internal.h
@@
-125,7
+125,7
@@
typedef struct {
} parseinfo;
union checklabel_state {
} parseinfo;
union checklabel_state {
-
int dummy
;
+
struct { byte ipv[4]; } ptr
;
};
typedef struct {
};
typedef struct {
@@
-133,7
+133,9
@@
typedef struct {
void (*callback)(adns_query parent, adns_query child);
union {
void (*callback)(adns_query parent, adns_query child);
union {
- adns_rr_addr ptr_addr;
+ struct {
+ struct in_addr addr;
+ } ptr;
} tinfo; /* type-specific state for the query itself: zero-init if you
* don't know better. */
} tinfo; /* type-specific state for the query itself: zero-init if you
* don't know better. */
@@
-457,8
+459,8
@@
void adns__query_send(adns_query qu, struct timeval now);
/* From query.c: */
adns_status adns__internal_submit(adns_state ads, adns_query *query_r,
/* From query.c: */
adns_status adns__internal_submit(adns_state ads, adns_query *query_r,
- const typeinfo *typei,
vbuf *qumsg_vb
,
- int id,
+ const typeinfo *typei,
adns_rrtype type
,
+
vbuf *qumsg_vb,
int id,
adns_queryflags flags, struct timeval now,
qcontext *ctx);
/* Submits a query (for internal use, called during external submits).
adns_queryflags flags, struct timeval now,
qcontext *ctx);
/* Submits a query (for internal use, called during external submits).