aboutsummaryrefslogtreecommitdiff
path: root/gethnamaddr.h
Commit message (Collapse)AuthorAgeFilesLines
* Make resolv_gethostbyaddr() re-entrantBernie Innocenti2019-10-111-3/+4
| | | | | | | | The new call signature is closer to gethostbyaddr_r() and no longer relies on thread-local storage for its buffers. This is the last nail in the coffin of res_get_static(). Change-Id: I0673dd5a566e53a47a1c7a5b0afc67f5f28d1361
* Make resolv_gethostbyname() re-entrantBernie Innocenti2019-10-111-2/+10
| | | | | | | | | The new call signature is closer to gethostbyname2_r() and no longer relies on thread-local storage for its buffers. res_get_static() is now down to a single caller. Test: m, flash, atest Change-Id: Ic6e2c0292fece31c2586a81d8fb6a8df20c4f9f5
* Fill in each dns stats value in message NetworkDnsEventReportedlifr2019-06-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Result dump metric_id: 1111 event_metrics { data { elapsed_timestamp_nanos: 166844290056 atom { network_dns_event_reported { event_type: EVENT_GETADDRINFO return_code: RC_EAI_NO_ERROR latency_micros: 78961 hints_ai_flags: 1024 res_nsend_flags: -1 network_type: NT_UNKNOWN private_dns_modes: PDM_STRICT dns_query_events { dns_query_event { rcode: NS_R_NO_ERROR type: NS_T_A ip_version: IV_IPV4 protocol: PROTO_DOT dns_server_index: 0 latency_micros: 77843 } } } } } Bug: 119862317 Test: ./out/host/linux-x86/bin/statsd_testdrive 116 Change-Id: Ia9d2ca076cdd95df206f573531a17badb34fda62
* Use Apache license for newly added filesBernie Innocenti2019-05-301-22/+10
| | | | | | | | Rather than the usual Apache license, I accidentally pasted a BSD license header in four new files added earlier today. Test: N/A Change-Id: Ic28f54be269b614b154c32359689c0c6a49b2320
* Move internal functions out of libnetd_resolv's public headersBernie Innocenti2019-05-291-0/+39
This is yet another preparatory change before enableing the ABI checker. Internal functions are now declared in non-public headers paired with the source files where they are declared. A followup change could further split resolv_private.h. Bug: 133117690 Test: No functionality changes, just run atest. Change-Id: I66ab2f9856e7faa82c74a8ef3fbdeef579577c64