1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-05 22:39:39 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
53c2186e18 txt: introduce ares_parse_txt_reply_ext
Introduce `ares_txt_ext` structure with an extra `record_start`
field, which indicates a start of a new TXT record, thus allowing to
differentiate the chunks in the same record, from a chunks in a
different record.

Introduce a new API method: `ares_parse_txt_reply_ext` that works with
this kind of struct.
2016-02-04 10:00:59 +00:00
7972adc5d7 api: Add entrypoints to allow use of per-server ports
Add user-visible entrypoints ares_{get,set}_servers_ports(3), which
take struct ares_addr_port_node rather than struct ares_addr_node.
This structure includes a UDP and TCP port number; if this is set
to zero, the channel-wide port values are used as before.

Similarly, add a new ares_set_servers_ports_csv(3) entrypoint, which
is analogous to ares_set_servers(3) except it doesn't ignore any
specified port information; instead, any per-server specified port
is used as both the UDP and TCP port for that server.

The internal struct ares_addr is extended to hold the UDP/TCP ports,
stored in network order, with the convention that a value of zero
indicates that the channel-wide UDP/TCP port should be used.

For the internal implementation of ares_dup(3), shift to use the
_ports() version of the get/set functions, so port information is
transferred correctly to the new channel.

Update manpages, and add missing ares_set_servers_csv to the lists
while we're at it
2016-02-02 10:13:46 +00:00
050663271e ares_get_datatype: removed unused function
it was also wrongly named as internal functions require two underscores
2013-02-13 14:58:04 +01:00
6e44d64429 ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0 2012-06-16 23:12:04 +02:00
979bf951d3 SOA parser added
I need to do SOA queries, so here is a parser for them.

- ares_soa_reply: new struct
- ares_malloc_data/ares_free_soa: ARES_DATATYPE_SOA_REPLY
- ares_parse_soa_reply: actual function
2012-06-15 13:32:48 +02:00
6bab0393c4 Added support for parsing NAPTR records 2012-02-23 23:15:07 +01:00
63918fca76 added ares_parse_mx_reply 2010-04-18 00:29:26 +02:00
63627fa5ab remove all $Id$ lines 2010-03-27 19:42:02 +01:00
8fe746fcf2 Added IPv6 name servers support 2010-03-05 20:01:47 +00:00
612a29311a Daniel wants upcoming release to be 1.7.0 2009-11-23 12:03:32 +00:00
2a916ce6e5 Initial support for the generic ares_free_data() function that will allow
applications to free memory allocated and returned by some c-ares funtions.
2009-11-20 08:50:03 +00:00