Pavel Šimerda [Wed, 22 Oct 2014 14:37:10 +0000 (16:37 +0200)]
compat: use AF_INET in legacy gethostbyname as specified by POSIX
Pavel Šimerda [Sun, 19 Oct 2014 10:10:05 +0000 (12:10 +0200)]
logging: don't require NL character
Pavel Šimerda [Wed, 22 Oct 2014 14:43:58 +0000 (16:43 +0200)]
string: support raw sockets
Pavel Šimerda [Fri, 17 Oct 2014 09:49:17 +0000 (11:49 +0200)]
wrapresolve: fix installed script
Pavel Šimerda [Fri, 17 Oct 2014 09:46:46 +0000 (11:46 +0200)]
libc: return on error
Pavel Šimerda [Fri, 17 Oct 2014 08:50:47 +0000 (10:50 +0200)]
tools: add wrapresolve command
Pavel Šimerda [Fri, 17 Oct 2014 09:11:16 +0000 (11:11 +0200)]
ubdns: fix single protocol requests
Pavel Šimerda [Sun, 12 Oct 2014 12:56:49 +0000 (14:56 +0200)]
update README and TODO
Pavel Šimerda [Thu, 27 Mar 2014 09:13:42 +0000 (10:13 +0100)]
support reverse and dns queries
Pavel Šimerda [Thu, 16 Oct 2014 14:17:02 +0000 (16:17 +0200)]
backends: add `hostname` backend, a replacmenet for nss-myhostname
Pavel Šimerda [Wed, 15 Oct 2014 15:20:16 +0000 (17:20 +0200)]
backends: rename setup() to setup_forward() to prepare for new functionality
Pavel Šimerda [Wed, 15 Oct 2014 15:21:07 +0000 (17:21 +0200)]
string: revert unintentional variable naming change
Pavel Šimerda [Tue, 14 Oct 2014 09:54:15 +0000 (11:54 +0200)]
compat: refactor libc compatibility features and tests
Pavel Šimerda [Tue, 14 Oct 2014 14:03:17 +0000 (16:03 +0200)]
numerichost: copy node to canonical name
Pavel Šimerda [Tue, 14 Oct 2014 08:39:20 +0000 (10:39 +0200)]
tests: refactor the async test a bit
Pavel Šimerda [Tue, 14 Oct 2014 07:44:08 +0000 (09:44 +0200)]
backends: use setup+cleanup for API functions instead of start+cleanup
Pavel Šimerda [Mon, 13 Oct 2014 22:11:21 +0000 (00:11 +0200)]
backends: refactor netresolve_backend_add_path a bit
Pavel Šimerda [Mon, 13 Oct 2014 20:43:10 +0000 (22:43 +0200)]
aresdns: use zero socktype/protocol/port, not -1
Pavel Šimerda [Sun, 12 Oct 2014 16:44:21 +0000 (18:44 +0200)]
ubdns: refactor code, add SRV support, use by default
Pavel Šimerda [Fri, 10 Oct 2014 08:25:04 +0000 (10:25 +0200)]
backends: simplify access to nss _res_hconf object
Pavel Šimerda [Thu, 9 Oct 2014 01:10:28 +0000 (03:10 +0200)]
nss-netresolve: implement gethostbyname* entry points
Pavel Šimerda [Thu, 9 Oct 2014 01:30:41 +0000 (03:30 +0200)]
compat: provide ttl in getaddrinfo based API
Pavel Šimerda [Thu, 9 Oct 2014 16:20:22 +0000 (18:20 +0200)]
backends: pass only initialized data to nsswitch gethostbyname4_r
1) Initualize the result pointer to NULL before passing a pointer to it
This avoids memory corruption caused by _nss_files_gethostbyname4_r
which for some unknown reason attempts to use the random memory
referenced from the pointer that is supposed to be the output
parameter.
2) Initialize the TTL value before passing a pointer to it
I'm not yet sure what is the correct behavior regarding TTL in the
nsswitch interface. It seems that nscd/aicache.c in glibc source
code uses INT32_MAX and expects the module to clamp it down if
possible. But that belongs to a different commit.
Pavel Šimerda [Wed, 8 Oct 2014 23:45:34 +0000 (01:45 +0200)]
backends: fix ubdns result handling
Wrong handling of results often led to returning only IPv4 data.
Pavel Šimerda [Wed, 8 Oct 2014 20:32:44 +0000 (22:32 +0200)]
string: include ttl in serialized form
Pavel Šimerda [Wed, 8 Oct 2014 18:39:44 +0000 (20:39 +0200)]
refactor and extend tests
Pavel Šimerda [Wed, 8 Oct 2014 22:01:40 +0000 (00:01 +0200)]
backends: return ttl from ubdns
Pavel Šimerda [Wed, 8 Oct 2014 20:33:28 +0000 (22:33 +0200)]
backends: use zero ttl in getaddrinfo backend
Pavel Šimerda [Wed, 8 Oct 2014 18:50:31 +0000 (20:50 +0200)]
backends: don't segfault on empty nodename
Pavel Šimerda [Tue, 7 Oct 2014 16:46:19 +0000 (18:46 +0200)]
add preliminary libnss_netresolve implementation
For now only the getaddrinfo API as suggested by Alexander Oliva is
implemented. It will be updated to match the final version of the
API.
Pavel Šimerda [Tue, 7 Oct 2014 20:26:08 +0000 (22:26 +0200)]
backends: use nsswitch getaddrinfo when available
This API originates from a proposal from Alexandre Oliva
<aoliva@redhat.com>. The nss netresolve backend will be updated
with the proposal.
Pavel Šimerda [Tue, 7 Oct 2014 19:34:50 +0000 (21:34 +0200)]
backends: add addrinfo helper functions
Pavel Šimerda [Wed, 8 Oct 2014 14:17:14 +0000 (16:17 +0200)]
backends: use nsswitch getaddrinfo4_r when available
Pavel Šimerda [Tue, 7 Oct 2014 15:46:43 +0000 (17:46 +0200)]
backends: fix and refactor nsswitch module support
Pavel Šimerda [Wed, 8 Oct 2014 13:48:03 +0000 (15:48 +0200)]
backends: support absolute/relative paths to nsswitch modules
Pavel Šimerda [Wed, 8 Oct 2014 16:17:56 +0000 (18:17 +0200)]
backends: handle priority, weight and ttl from backends
Pavel Šimerda [Wed, 8 Oct 2014 16:07:11 +0000 (18:07 +0200)]
backends: remove netresolve_backend_add_address macro
Pavel Šimerda [Wed, 8 Oct 2014 14:57:47 +0000 (16:57 +0200)]
backends: use zero constant for socktype/protocol/port
Suggested by Alexandre Oliva <aoliva@redhat.com> as part of his nss
extention proposal.
Pavel Šimerda [Thu, 28 Aug 2014 12:35:39 +0000 (14:35 +0200)]
services: don't accept NULL servname
Instead it's handled in `netresolve_backend_add_path()`.
Pavel Šimerda [Thu, 28 Aug 2014 12:35:39 +0000 (14:35 +0200)]
support NETRESOLVE_FORCE_FAMILY environment variable
Pavel Šimerda [Thu, 28 Aug 2014 12:35:13 +0000 (14:35 +0200)]
trivial: merge netresolve-string.h into netresolve-private.h
Pavel Šimerda [Thu, 28 Aug 2014 12:33:34 +0000 (14:33 +0200)]
wrapper.sh: fix LD_PRELOAD library path
Pavel Šimerda [Tue, 15 Jul 2014 16:35:14 +0000 (18:35 +0200)]
add test program for libevent
Pavel Šimerda [Sun, 27 Apr 2014 10:17:19 +0000 (12:17 +0200)]
exec: close all pipe file descriptors in the chiled process after dup2
Pavel Šimerda [Thu, 24 Apr 2014 11:46:14 +0000 (13:46 +0200)]
fix unbound configure check
Pavel Šimerda [Tue, 22 Apr 2014 12:57:39 +0000 (14:57 +0200)]
core: silence bogus gcc/glibc warning
Pavel Šimerda [Tue, 22 Apr 2014 12:57:20 +0000 (14:57 +0200)]
nss: remove bad memset call
Pavel Šimerda [Tue, 22 Apr 2014 12:50:52 +0000 (14:50 +0200)]
update README
Pavel Šimerda [Tue, 22 Apr 2014 08:54:57 +0000 (10:54 +0200)]
fix make distcheck
Pavel Šimerda [Thu, 20 Mar 2014 22:18:07 +0000 (23:18 +0100)]
add back accidentally removed aresdns
Pavel Šimerda [Wed, 19 Mar 2014 21:14:27 +0000 (22:14 +0100)]
rename dns to aresdns
Pavel Šimerda [Wed, 19 Mar 2014 20:13:24 +0000 (21:13 +0100)]
fix backend list segfault
Pavel Šimerda [Wed, 19 Mar 2014 15:52:21 +0000 (16:52 +0100)]
added libunbound based backend
Pavel Šimerda [Mon, 10 Feb 2014 11:25:23 +0000 (12:25 +0100)]
update README and TODO
Pavel Šimerda [Mon, 10 Feb 2014 12:47:00 +0000 (13:47 +0100)]
update gitignore
Pavel Šimerda [Mon, 10 Feb 2014 12:14:02 +0000 (13:14 +0100)]
test multiple queries
Pavel Šimerda [Mon, 10 Feb 2014 12:02:03 +0000 (13:02 +0100)]
add support for channel/query user_data
Pavel Šimerda [Mon, 10 Feb 2014 14:40:08 +0000 (15:40 +0100)]
support multiple queries per channel
Pavel Šimerda [Mon, 10 Feb 2014 10:52:15 +0000 (11:52 +0100)]
make hosts backend thread-safe
Pavel Šimerda [Mon, 10 Feb 2014 14:42:08 +0000 (15:42 +0100)]
use nodename/servname instead of node/service
Pavel Šimerda [Sun, 9 Feb 2014 13:55:17 +0000 (14:55 +0100)]
decouple channel and query structures
Pavel Šimerda [Sun, 9 Feb 2014 11:53:02 +0000 (12:53 +0100)]
improve internal and backend APIs
Pavel Šimerda [Sun, 9 Feb 2014 13:11:48 +0000 (14:11 +0100)]
update README (c-ares blocks in offline tests)
Pavel Šimerda [Sat, 8 Feb 2014 17:18:23 +0000 (18:18 +0100)]
fix tests for machines without exp1 in /etc/services
Pavel Šimerda [Sat, 8 Feb 2014 15:56:46 +0000 (16:56 +0100)]
cli: don't segfault on unknown option
Pavel Šimerda [Sat, 8 Feb 2014 15:51:34 +0000 (16:51 +0100)]
cli: support --host alias for --node
Pavel Šimerda [Sat, 8 Feb 2014 15:47:47 +0000 (16:47 +0100)]
fix services.c segfault
Pavel Šimerda [Sat, 8 Feb 2014 12:59:14 +0000 (13:59 +0100)]
trivial: test program comment
Pavel Šimerda [Tue, 14 Jan 2014 13:04:18 +0000 (14:04 +0100)]
refactor the library files
Pavel Šimerda [Tue, 14 Jan 2014 14:06:19 +0000 (15:06 +0100)]
api: rename netresolve_query_get_path_sockaddr
Pavel Šimerda [Tue, 14 Jan 2014 14:34:52 +0000 (15:34 +0100)]
core: sort IPv6 paths before IPv4 paths
Pavel Šimerda [Tue, 14 Jan 2014 14:01:13 +0000 (15:01 +0100)]
dns: disable domain search in ares
We need to avoid prioritizing search domain based results in one
protocol over global results in another. The simplest way is to disable
the domain search feature in ares as we don't need it in this stage of
development.
Pavel Šimerda [Wed, 25 Dec 2013 17:16:12 +0000 (18:16 +0100)]
cli: support long options
Pavel Šimerda [Mon, 13 Jan 2014 11:53:26 +0000 (12:53 +0100)]
compat: add some comments to libc implementation
Pavel Šimerda [Mon, 13 Jan 2014 11:23:50 +0000 (12:23 +0100)]
update README and TODO
Pavel Šimerda [Wed, 11 Dec 2013 11:49:11 +0000 (12:49 +0100)]
refactor libc compatibility library
Implement the following building blocks that can be used by other
getaddrinfo-like and gethostbyname-like functions in the future:
* netresolve_query_getaddrinfo
* netresolve_query_getaddrinfo_done
* netresolve_query_getaddrinfo_free
* netresolve_query_gethostbyname
* netresolve_query_gethostbyname_done
* netresolve_query_gethostbyname_free
Pavel Šimerda [Wed, 11 Dec 2013 15:13:59 +0000 (16:13 +0100)]
rename netresolve_query_cancel to netresolve_query_done
The new name better matches what the function should do. When the
current limitation of not supporting concurrent queries on a single
channel is lifted, this function will be used to free the query
resourced.
Pavel Šimerda [Wed, 20 Nov 2013 11:52:57 +0000 (12:52 +0100)]
rework the API
The API is now channel/query based even though the implementation is not
yet ready for that and you still need one channel per concurrent query.
That is why `netresolve_query_t` is currently defined the same way as
`netresolve_channel_t`.
Various other API bits have been cleaned up. README and TODO have been
updated.
Pavel Šimerda [Tue, 26 Nov 2013 08:17:26 +0000 (09:17 +0100)]
switch to the BSD 2-clause license
Pavel Šimerda [Mon, 25 Nov 2013 10:45:27 +0000 (11:45 +0100)]
avoid segfaults
Pavel Šimerda [Wed, 20 Nov 2013 06:40:46 +0000 (07:40 +0100)]
dns: add basic support for SRV records
Pavel Šimerda [Thu, 21 Nov 2013 23:39:42 +0000 (00:39 +0100)]
extend path with priority and weight
Pavel Šimerda [Thu, 21 Nov 2013 23:34:42 +0000 (00:34 +0100)]
turn flags into separate APIs
Pavel Šimerda [Wed, 20 Nov 2013 08:19:35 +0000 (09:19 +0100)]
former posix compatibility library is now libc compatibility library
There can be also functions not included in POSIX.
Pavel Šimerda [Sat, 9 Nov 2013 14:41:58 +0000 (15:41 +0100)]
update README and TODO
Pavel Šimerda [Thu, 14 Nov 2013 13:02:33 +0000 (14:02 +0100)]
report errors when backend finished/failed out of order
Pavel Šimerda [Mon, 18 Nov 2013 16:56:41 +0000 (17:56 +0100)]
security: use secure_getenv instead of getenv
Pavel Šimerda [Tue, 12 Nov 2013 09:05:43 +0000 (10:05 +0100)]
trivial: fix utils headers
Pavel Šimerda [Thu, 14 Nov 2013 19:37:34 +0000 (20:37 +0100)]
trivial: update .vimrc
Pavel Šimerda [Thu, 14 Nov 2013 19:35:15 +0000 (20:35 +0100)]
trivial: update .gitignore
Pavel Šimerda [Mon, 11 Nov 2013 06:22:46 +0000 (07:22 +0100)]
EXPERIMENTAL: implement happy eyeballs for TCP `connect()`
Pavel Šimerda [Thu, 14 Nov 2013 18:20:46 +0000 (19:20 +0100)]
add netconnect tool for socket API testing
Pavel Šimerda [Sat, 16 Nov 2013 16:55:33 +0000 (17:55 +0100)]
improve debugging
Pavel Šimerda [Thu, 14 Nov 2013 18:40:41 +0000 (19:40 +0100)]
fix make distcheck
Pavel Šimerda [Thu, 14 Nov 2013 17:41:22 +0000 (18:41 +0100)]
move request debugging to the library
Pavel Šimerda [Sat, 16 Nov 2013 16:31:31 +0000 (17:31 +0100)]
call backend_cleanup() only from backend.c
Pavel Šimerda [Sat, 16 Nov 2013 17:08:47 +0000 (18:08 +0100)]
return bool from _netresolve_dispatch_fd()
Pavel Šimerda [Sat, 16 Nov 2013 17:07:27 +0000 (18:07 +0100)]
internal API for adding/removing timeouts
Pavel Šimerda [Sat, 16 Nov 2013 16:55:00 +0000 (17:55 +0100)]
exec: unwatch and close sockets exactly once
Pavel Šimerda [Sat, 16 Nov 2013 16:54:00 +0000 (17:54 +0100)]
exec: parse returned path lines
This page took 0.071342 seconds and 5 git commands to generate.