Lines Matching full:wire
724 uint8_t *wire, *wireout; local
727 wire = LDNS_XMALLOC(uint8_t, LDNS_MAX_PACKETLEN);
728 if (!wire) {
733 wire_size = recvfrom(sockfd, (void*)wire, LDNS_MAX_PACKETLEN, 0,
739 LDNS_FREE(wire);
744 wireout = LDNS_XREALLOC(wire, uint8_t, (size_t)wire_size);
745 if(!wireout) LDNS_FREE(wire);
753 uint8_t *wire; local
757 wire = LDNS_XMALLOC(uint8_t, 2);
758 if (!wire) {
766 LDNS_FREE(wire);
769 rc = recv(sockfd, (void*) (wire + bytes),
773 LDNS_FREE(wire);
779 wire_size = ldns_read_uint16(wire);
781 LDNS_FREE(wire);
782 wire = LDNS_XMALLOC(uint8_t, wire_size);
783 if (!wire) {
792 LDNS_FREE(wire);
795 rc = recv(sockfd, (void*) (wire + bytes),
798 LDNS_FREE(wire);
806 return wire;
812 uint8_t *wire; local
816 wire = LDNS_XMALLOC(uint8_t, 2);
817 if (!wire) {
823 rc = recv(sockfd, (void*) (wire + bytes),
827 LDNS_FREE(wire);
833 wire_size = ldns_read_uint16(wire);
835 LDNS_FREE(wire);
836 wire = LDNS_XMALLOC(uint8_t, wire_size);
837 if (!wire) {
844 rc = recv(sockfd, (void*) (wire + bytes),
847 LDNS_FREE(wire);
855 return wire;