Lines Matching defs:towire
87 dns_towire_state_t towire;
92 memset(&towire, 0, sizeof(towire));
93 towire.p = &buffer[DNS_HEADER_SIZE];
94 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
95 towire.message = &dns_message;
96 dns_u16_to_wire(&towire, kDSOType_DNSPushUnsubscribe);
97 dns_rdlength_begin(&towire);
98 dns_u16_to_wire(&towire, push_state->subscribe_xids[index]);
99 dns_rdlength_end(&towire);
102 iov.iov_len = towire.p - buffer;
116 dns_towire_state_t towire;
126 memset(&towire, 0, sizeof(towire));
127 towire.p = &buffer[DNS_HEADER_SIZE];
128 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
129 towire.message = &dns_message;
130 dns_u16_to_wire(&towire, kDSOType_Keepalive);
131 dns_rdlength_begin(&towire);
132 dns_u32_to_wire(&towire, 600);
133 dns_u32_to_wire(&towire, 600);
134 dns_rdlength_end(&towire);
138 dns_u32_to_wire(&towire, 0x12345678);
142 iov.iov_len = towire.p - buffer;
590 dns_towire_state_t towire;
604 memset(&towire, 0, sizeof(towire));
605 towire.p = &buffer[DNS_HEADER_SIZE];
606 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
607 towire.message = &dns_message;
608 dns_u16_to_wire(&towire, kDSOType_DNSPushSubscribe);
609 dns_rdlength_begin(&towire);
610 dns_full_name_to_wire(NULL, &towire, name);
611 dns_u16_to_wire(&towire, rrtype);
612 dns_u16_to_wire(&towire, dns_qclass_in);
613 dns_rdlength_end(&towire);
627 memset(&towire, 0, sizeof(towire));
628 towire.p = &buffer[DNS_HEADER_SIZE];
629 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
630 towire.message = &dns_message;
632 dns_full_name_to_wire(&np, &towire, name);
633 dns_u16_to_wire(&towire, rrtype);
634 dns_u16_to_wire(&towire, dns_qclass_in);
636 dns_pointer_to_wire(NULL, &towire, &np);
637 dns_u16_to_wire(&towire, dns_rrtype_txt);
638 dns_u16_to_wire(&towire, dns_qclass_in);
645 iov.iov_len = towire.p - buffer;
664 dns_towire_state_t towire;
667 memset(&towire, 0, sizeof(towire));
668 towire.p = &buffer[DNS_HEADER_SIZE];
669 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
670 towire.message = &dns_message;
671 dns_u16_to_wire(&towire, kDSOType_Keepalive);
672 dns_rdlength_begin(&towire);
673 dns_u32_to_wire(&towire, 100); // Inactivity timeout
674 dns_u32_to_wire(&towire, 100); // Keepalive interval
675 dns_rdlength_end(&towire);
678 iov.iov_len = towire.p - buffer;