Home | History | Annotate | Download | only in ServiceRegistration

Lines Matching defs:towire

621         dns_towire_state_t towire;
622 memset(&towire, 0, sizeof towire);
623 towire.p = &response.data[0]; // We start storing RR data here.
624 towire.lim = &response.data[DNS_DATA_SIZE]; // This is the limit to how much we can store.
625 towire.message = &response;
630 dns_edns0_header_to_wire(&towire, DNS_MAX_UDP_PAYLOAD, 0, 0, 1);
631 dns_rdlength_begin(&towire);
632 dns_u16_to_wire(&towire, dns_opt_update_lease); // OPTION-CODE
633 dns_edns0_option_begin(&towire); // OPTION-LENGTH
634 dns_u32_to_wire(&towire, client->host_lease); // LEASE (e.g. 1 hour)
635 dns_u32_to_wire(&towire, client->key_lease); // KEY-LEASE (7 days)
636 dns_edns0_option_end(&towire); // Now we know OPTION-LENGTH
637 dns_rdlength_end(&towire);
640 if (towire.error) {
644 iov.iov_len = towire.p - (uint8_t *)&response;