Home | History | Annotate | Download | only in ServiceRegistration

Lines Matching defs:towire

581     dns_towire_state_t towire;
586 memset(&towire, 0, sizeof(towire));
587 towire.p = &buffer[DNS_HEADER_SIZE];
588 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
589 towire.message = &dns_message;
590 dns_u16_to_wire(&towire, kDSOType_DNSPushUnsubscribe);
591 dns_rdlength_begin(&towire);
592 dns_u16_to_wire(&towire, dns_push_subscribe_xid);
593 dns_rdlength_end(&towire);
596 iov.iov_len = towire.p - buffer;
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_Keepalive);
609 dns_rdlength_begin(&towire);
610 dns_u32_to_wire(&towire, 600);
611 dns_u32_to_wire(&towire, 600);
612 dns_rdlength_end(&towire);
616 dns_u32_to_wire(&towire, 0x12345678);
620 iov.iov_len = towire.p - buffer;
835 dns_towire_state_t towire;
839 memset(&towire, 0, sizeof(towire));
840 towire.p = &buffer[DNS_HEADER_SIZE];
841 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
842 towire.message = &dns_message;
843 dns_u16_to_wire(&towire, kDSOType_DNSPushSubscribe);
844 dns_rdlength_begin(&towire);
846 dns_full_name_to_wire(NULL, &towire, "default.service.arpa");
847 dns_u16_to_wire(&towire, dns_rrtype_soa);
849 dns_full_name_to_wire(NULL, &towire, "_airplay._tcp.default.service.arpa");
850 dns_u16_to_wire(&towire, dns_rrtype_ptr);
852 dns_u16_to_wire(&towire, dns_qclass_in);
853 dns_rdlength_end(&towire);
856 iov.iov_len = towire.p - buffer;
875 dns_towire_state_t towire;
878 memset(&towire, 0, sizeof(towire));
879 towire.p = &buffer[DNS_HEADER_SIZE];
880 towire.lim = towire.p + (sizeof(dns_message) - DNS_HEADER_SIZE);
881 towire.message = &dns_message;
882 dns_u16_to_wire(&towire, kDSOType_Keepalive);
883 dns_rdlength_begin(&towire);
884 dns_u32_to_wire(&towire, 100); // Inactivity timeout
885 dns_u32_to_wire(&towire, 100); // Keepalive interval
886 dns_rdlength_end(&towire);
889 iov.iov_len = towire.p - buffer;