Lines Matching refs:rsp
740 struct dns_header *rsp = (struct dns_header *)buf; in dns_sd_handle_ptr_query() local
744 memset(rsp, 0, sizeof(*rsp)); in dns_sd_handle_ptr_query()
778 rsp->ancount++; in dns_sd_handle_ptr_query()
787 rsp->arcount++; in dns_sd_handle_ptr_query()
796 rsp->arcount++; in dns_sd_handle_ptr_query()
806 rsp->arcount++; in dns_sd_handle_ptr_query()
818 rsp->arcount++; in dns_sd_handle_ptr_query()
823 rsp->flags = htons(BIT(15) | BIT(10)); in dns_sd_handle_ptr_query()
824 rsp->ancount = htons(rsp->ancount); in dns_sd_handle_ptr_query()
825 rsp->arcount = htons(rsp->arcount); in dns_sd_handle_ptr_query()
842 struct dns_header *const rsp = (struct dns_header *)buf; in dns_sd_handle_service_type_enum() local
887 memset(rsp, 0, sizeof(*rsp)); in dns_sd_handle_service_type_enum()
912 rsp->flags = htons(BIT(15) | BIT(10)); in dns_sd_handle_service_type_enum()
913 rsp->ancount = htons(1); in dns_sd_handle_service_type_enum()