Lines Matching defs:reply

199 struct reply {
261 /* Represents part of a reply being built. (That is, a single RR.) */
274 /* the components of the reply as we're constructing it. */
295 /* Constructed response. Only set once we're ready to send a reply. */
781 struct reply reply;
794 cb->reply.data.a.addrcount, cb->ttl,
795 cb->reply.data.a.addresses,
802 char *name = cb->reply.data.ptr.name;
812 cb->reply.data.aaaa.addrcount, cb->ttl,
813 cb->reply.data.aaaa.addresses,
830 reply_schedule_callback(struct request *const req, u32 ttl, u32 err, struct reply *reply)
846 if (reply) {
848 memcpy(&d->reply, reply, sizeof(struct reply));
866 /* this processes a parsed reply packet */
868 reply_handle(struct request *const req, u16 flags, u32 ttl, struct reply *reply) {
879 if (flags & 0x020f || !reply || !reply->have_answer) {
890 } else if (reply && !reply->have_answer) {
923 /* we got a good reply from the nameserver: it is up. */
951 reply_schedule_callback(req, ttl, 0, reply);
1027 struct reply reply;
1046 memset(&reply, 0, sizeof(reply));
1056 /* This macro skips a name in the DNS reply. */
1082 reply.type = req->request_type;
1084 /* skip over each question in the reply */
1118 addrtocopy = MIN(MAX_V4_ADDRS - reply.data.a.addrcount, (unsigned)addrcount);
1123 memcpy(&reply.data.a.addresses[reply.data.a.addrcount],
1126 reply.data.a.addrcount += addrtocopy;
1127 reply.have_answer = 1;
1128 if (reply.data.a.addrcount == MAX_V4_ADDRS) break;
1133 if (name_parse(packet, length, &j, reply.data.ptr.name,
1134 sizeof(reply.data.ptr.name))<0)
1137 reply.have_answer = 1;
1156 addrtocopy = MIN(MAX_V6_ADDRS - reply.data.aaaa.addrcount, (unsigned)addrcount);
1161 memcpy(&reply.data.aaaa.addresses[reply.data.aaaa.addrcount],
1163 reply.data.aaaa.addrcount += addrtocopy;
1165 reply.have_answer = 1;
1166 if (reply.data.aaaa.addrcount == MAX_V6_ADDRS) break;
1173 if (!reply.have_answer) {
1206 reply_handle(req, flags, ttl_r, &reply);
2308 /* this is a good reply */
3999 case DNS_ERR_TRUNCATED: return "reply truncated or ill-formed";
4004 case DNS_ERR_NODATA: return "no records in the reply";