will be freed once resolve_answer_fn returns. It is in network byte
order. */
typedef void resolve_answer_fn(void *st, const struct comm_addr *addrs,
- int naddrs, const char *failwhy);
+ int naddrs, const char *name,
+ const char *failwhy);
+ /* name is the same ptr as passed to request, so its lifetime must
+ * be suitable*/
typedef bool_t resolve_request_fn(void *st, cstring_t name,
int remoteport, struct comm_if *comm,
resolve_answer_fn *cb, void *cst);