This doesn't affect any of the objects lifetime, just provides a
convenience for logging as some subsystems take only pointer of queries
not the request object.
/* Class and type must be set outside this function. */
qry->flags = rplan->request->options;
qry->parent = parent;
+ qry->request = rplan->request;
qry->ns.ctx = rplan->request->ctx;
qry->ns.addr[0].ip.sa_family = AF_UNSPEC;
gettimeofday(&qry->timestamp, NULL);
uint32_t uid; /**< Query iteration number, unique within the kr_rplan. */
/** Pointer to the query that originated this one because of following a CNAME (or NULL). */
struct kr_query *cname_parent;
+ struct kr_request *request; /**< Parent resolution request. */
};
/** @cond internal Array of queries. */