Lines Matching defs:towire
47 dns_towire_state_t towire;
48 memset(&towire, 0, sizeof(towire));
49 towire.p = &response.data[0];
50 towire.lim = ((uint8_t *)&response) + sizeof(response);
51 towire.message = &response;
53 size_t namelen = dns_name_to_wire_canonical(towire.p, towire.lim - towire.p, question.name);
55 towire.p += namelen;
56 dns_u16_to_wire(&towire, question.type);
57 dns_u16_to_wire(&towire, question.qclass);
58 if (!towire.truncated && !towire.error) {
60 length += towire.p - (uint8_t *)&response.data[0];
90 dns_towire_state_t towire;
93 memset(&towire, 0, sizeof(towire));
95 towire.p = &response.data[0]; // We start storing RR data here.
96 towire.lim = ((uint8_t *)&response) + sizeof(response);
97 towire.message = &response;
98 towire.p_rdlength = NULL;
99 towire.p_opt = NULL;
106 dns_u16_to_wire(&towire, kDSOType_RetryDelay);
108 if (towire.p + 2 > towire.lim) {
112 uint8_t *p_dso_length = towire.p;
113 towire.p += 2;
115 dns_u32_to_wire(&towire, milliseconds);
117 int16_t dso_length = towire.p - p_dso_length - 2;
118 iov.iov_len = (towire.p - (uint8_t *)&response);
121 towire.p = p_dso_length;
122 dns_u16_to_wire(&towire, dso_length);