Home
last modified time | relevance | path

Searched refs:rdlen (Results 1 – 11 of 11) sorted by relevance

/external/mdnsresponder/mDNSShared/
Ddnssd_ipc.c133 void put_rdata(const int rdlen, const unsigned char *rdata, char **ptr) in put_rdata() argument
135 memcpy(*ptr, rdata, rdlen); in put_rdata()
136 *ptr += rdlen; in put_rdata()
139 const char *get_rdata(const char **ptr, const char *end, int rdlen) in get_rdata() argument
141 if (!*ptr || *ptr + rdlen > end) in get_rdata()
149 *ptr += rdlen; in get_rdata()
Ddnssd_clientstub.c1190 uint16_t rrtype, rrclass, rdlen; in handle_query_response() local
1196 rdlen = get_uint16(&data, end); in handle_query_response()
1197 rdata = get_rdata(&data, end, rdlen); in handle_query_response()
1201 …dr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, name, rrtype, rrclass, rdlen, rdata, ttl, sdr->… in handle_query_response()
1248 uint16_t rrtype, rrclass, rdlen; in handle_addrinfo_response() local
1255 rdlen = get_uint16(&data, end); in handle_addrinfo_response()
1256 rdata = get_rdata (&data, end, rdlen); in handle_addrinfo_response()
1277 if (!cbh->cb_err) memcpy(&sa4.sin_addr, rdata, rdlen); in handle_addrinfo_response()
1291 memcpy(&sa6.sin6_addr, rdata, rdlen); in handle_addrinfo_response()
1624 uint16_t rdlen, in DNSServiceRegisterRecord() argument
[all …]
Ddns_sd.h1085 uint16_t rdlen,
1125 uint16_t rdlen,
1454 uint16_t rdlen,
1736 uint16_t rdlen,
1784 uint16_t rdlen,
Ddnssd_clientshim.c310 uint16_t rdlen, in DNSServiceAddRecord() argument
319 (void)rdlen; // Unused in DNSServiceAddRecord()
330 uint16_t rdlen, in DNSServiceUpdateRecord() argument
338 (void)rdlen; // Unused in DNSServiceUpdateRecord()
596 uint16_t rdlen, in DNSServiceRegisterRecord() argument
610 (void)rdlen; // Unused in DNSServiceRegisterRecord()
789 uint16_t rdlen, in DNSServiceReconfirmRecord() argument
798 (void)rdlen; // Unused in DNSServiceReconfirmRecord()
Ddnssd_ipc.h205 void put_rdata(const int rdlen, const unsigned char *rdata, char **ptr);
206 const char *get_rdata(const char **ptr, const char *end, int rdlen); // return value is rdata poin…
Duds_daemon.c494 mDNSu16 rdlen = get_uint16(&request->msgptr, request->msgend); in read_rr_from_ipc_msg() local
495 const char *rdata = get_rdata (&request->msgptr, request->msgend, rdlen); in read_rr_from_ipc_msg()
497 int storage_size = rdlen > sizeof(RDataBody) ? rdlen : sizeof(RDataBody); in read_rr_from_ipc_msg()
541 rr->resrec.rdlength = rdlen; in read_rr_from_ipc_msg()
542 rr->resrec.rdata->MaxRDLength = rdlen; in read_rr_from_ipc_msg()
543 mDNSPlatformMemCopy(rr->resrec.rdata->u.data, rdata, rdlen); in read_rr_from_ipc_msg()
1091 …quest_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, const char *rdata… in add_record_to_service() argument
1095 int size = rdlen > sizeof(RDataBody) ? rdlen : sizeof(RDataBody); in add_record_to_service()
1102 extra->r.resrec.rdlength = rdlen; in add_record_to_service()
1103 mDNSPlatformMemCopy(&extra->r.rdatastorage.u.data, rdata, rdlen); in add_record_to_service()
[all …]
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.c324 dns_rdata_to_name (const char * rdata, int rdlen, char * name, int name_len);
581 uint16_t rdlen,
602 int rdlen,
1067 uint16_t rdlen, in mdns_lookup_callback() argument
1110 if (callback_body_ptr (fullname, result, rdlen, rdata) < 0) in mdns_lookup_callback()
1128 if (! add_address_to_buffer (result, rdata, rdlen) ) in mdns_lookup_callback()
1165 int rdlen, in callback_body_ptr() argument
1175 rv = dns_rdata_to_name (rdata, rdlen, result_name, k_hostname_maxlen); in callback_body_ptr()
2562 dns_rdata_to_name (const char * rdata, int rdlen, char * name, int name_len) in dns_rdata_to_name() argument
2568 if (rdlen == 0) return DNS_RDATA_TO_NAME_BAD_FORMAT; in dns_rdata_to_name()
[all …]
/external/dnsmasq/src/
Drfc1035.c353 int i, rdlen; in skip_section() local
360 GETSHORT(rdlen, ansp); in skip_section()
361 if (!ADD_RDLEN(header, ansp, plen, rdlen)) in skip_section()
449 unsigned short rdlen, type, class; in find_pseudoheader() local
493 GETSHORT(rdlen, ansp); in find_pseudoheader()
494 if (!ADD_RDLEN(header, ansp, plen, rdlen)) in find_pseudoheader()
530 int i, qtype, qclass, rdlen; in do_doctor() local
541 GETSHORT(rdlen, p); in do_doctor()
574 if (!ADD_RDLEN(header, p, qlen, rdlen)) in do_doctor()
584 int qtype, qclass, rdlen; in find_soa() local
[all …]
/external/tcpdump/
Dprint-smb.c1177 int rdlen; in nbt_udp137_print() local
1187 rdlen = EXTRACT_16BITS(p); in nbt_udp137_print()
1188 printf("ResourceLength=%d\nResourceData=\n", rdlen); in nbt_udp137_print()
1190 if (rdlen == 6) { in nbt_udp137_print()
1191 p = smb_fdata(p, "AddrType=[rw]\nAddress=[b.b.b.b]\n", p + rdlen, 0); in nbt_udp137_print()
1228 print_data(p, min(rdlen, length - (p - data))); in nbt_udp137_print()
1229 p += rdlen; in nbt_udp137_print()
/external/boringssl/src/crypto/x509/
Dasn1_gen.c655 long rdlen; in asn1_str2type() local
792 if (!(rdata = string_to_hex((char *)str, &rdlen))) in asn1_str2type()
799 atmp->value.asn1_string->length = rdlen; in asn1_str2type()
/external/mdnsresponder/Clients/
Ddns-sd.c680 …const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32… in qr_reply() argument
684 const unsigned char *end = (const unsigned char *) rdata + rdlen; in qr_reply()
734 …default : snprintf(rdb, sizeof(rdb), "%d bytes%s", rdlen, rdlen ? ":" : ""); unknowntype = 1; brea… in qr_reply()
754 DNSServiceReconfirmRecord(flags, ifIndex, fullname, rrtype, rrclass, rdlen, rdata); in qr_reply()