Lines Matching refs:question
70 dns_wire_t question;
187 INFO("datagram from " PRI_S_SRP " on port %d xid %x (question xid %x) rcode %d", connection->name,
188 ntohs(probe_state->connection->address.sin6.sin6_port), message->wire.id, probe_state->question.id, rcode);
191 INFO("datagram from " PRI_SEGMENTED_IPv6_ADDR_SRP " on port %d xid %x (question xid %x) rcode %d",
193 ntohs(probe_state->connection->address.sin6.sin6_port), message->wire.id, probe_state->question.id, rcode);
195 if (message->wire.id != probe_state->question.id) {
196 return; // not a response to the question we asked
260 // Send the question
263 iov.iov_base = &probe_state->question;
303 memset(&probe_state->question, 0, DNS_HEADER_SIZE);
306 towire.p = &probe_state->question.data[0];
307 towire.lim = &probe_state->question.data[0] + DNS_DATA_SIZE;
308 towire.message = &probe_state->question;
311 probe_state->question.id = srp_random16();
312 probe_state->question.bitfield = 0;
313 dns_qr_set(&probe_state->question, dns_qr_query);
314 dns_opcode_set(&probe_state->question, dns_opcode_query);
315 probe_state->question.qdcount = htons(1); // Just ask one question
321 probe_state->question_length = (uint16_t)(towire.p - (uint8_t *)&probe_state->question);