Lines Matching refs:reply
200 struct reply { struct
785 struct reply reply; member
798 cb->reply.data.a.addrcount, cb->ttl, in reply_run_callback()
799 cb->reply.data.a.addresses, in reply_run_callback()
806 char *name = cb->reply.data.ptr.name; in reply_run_callback()
816 cb->reply.data.aaaa.addrcount, cb->ttl, in reply_run_callback()
817 cb->reply.data.aaaa.addresses, in reply_run_callback()
834 reply_schedule_callback(struct request *const req, u32 ttl, u32 err, struct reply *reply) in reply_schedule_callback() argument
850 if (reply) { in reply_schedule_callback()
852 memcpy(&d->reply, reply, sizeof(struct reply)); in reply_schedule_callback()
885 reply_handle(struct request *const req, u16 flags, u32 ttl, struct reply *reply) { in reply_handle() argument
896 if (flags & (_RCODE_MASK | _TC_MASK) || !reply || !reply->have_answer) { in reply_handle()
907 } else if (reply && !reply->have_answer) { in reply_handle()
968 reply_schedule_callback(req, ttl, 0, reply); in reply_handle()
1044 struct reply reply; in reply_parse() local
1063 memset(&reply, 0, sizeof(reply)); in reply_parse()
1081 reply.type = req->request_type; in reply_parse()
1133 addrtocopy = MIN(MAX_V4_ADDRS - reply.data.a.addrcount, (unsigned)addrcount); in reply_parse()
1138 memcpy(&reply.data.a.addresses[reply.data.a.addrcount], in reply_parse()
1141 reply.data.a.addrcount += addrtocopy; in reply_parse()
1142 reply.have_answer = 1; in reply_parse()
1143 if (reply.data.a.addrcount == MAX_V4_ADDRS) break; in reply_parse()
1148 if (name_parse(packet, length, &j, reply.data.ptr.name, in reply_parse()
1149 sizeof(reply.data.ptr.name))<0) in reply_parse()
1152 reply.have_answer = 1; in reply_parse()
1171 addrtocopy = MIN(MAX_V6_ADDRS - reply.data.aaaa.addrcount, (unsigned)addrcount); in reply_parse()
1176 memcpy(&reply.data.aaaa.addresses[reply.data.aaaa.addrcount], in reply_parse()
1178 reply.data.aaaa.addrcount += addrtocopy; in reply_parse()
1180 reply.have_answer = 1; in reply_parse()
1181 if (reply.data.aaaa.addrcount == MAX_V6_ADDRS) break; in reply_parse()
1188 if (!reply.have_answer) { in reply_parse()
1221 reply_handle(req, flags, ttl_r, &reply); in reply_parse()