netresolve.git
11 years agotools: print DNS data in netresolve
Pavel Šimerda [Sun, 16 Nov 2014 17:27:19 +0000 (18:27 +0100)]
tools: print DNS data in netresolve

11 years agocore: use abort() for fatal conditions in netresolve_query_new()
Pavel Šimerda [Sun, 16 Nov 2014 17:26:40 +0000 (18:26 +0100)]
core: use abort() for fatal conditions in netresolve_query_new()

11 years agolibc: rename getaddrinfo backend to libc, add support for getnameinfo and res_query
Pavel Šimerda [Sun, 16 Nov 2014 15:21:07 +0000 (16:21 +0100)]
libc: rename getaddrinfo backend to libc, add support for getnameinfo and res_query

11 years agocore: improve backend API
Pavel Šimerda [Sun, 16 Nov 2014 15:25:41 +0000 (16:25 +0100)]
core: improve backend API

11 years agocore: fix netresolve_query_get_dns_answer()
Pavel Šimerda [Sat, 15 Nov 2014 21:15:06 +0000 (22:15 +0100)]
core: fix netresolve_query_get_dns_answer()

11 years agoupdate .gitignore
Pavel Šimerda [Thu, 13 Nov 2014 13:00:15 +0000 (14:00 +0100)]
update .gitignore

11 years agocore: use a linked list for queries
Pavel Šimerda [Thu, 13 Nov 2014 12:09:39 +0000 (13:09 +0100)]
core: use a linked list for queries

11 years agocore: move event handling to the query object
Pavel Šimerda [Thu, 13 Nov 2014 11:13:21 +0000 (12:13 +0100)]
core: move event handling to the query object

11 years agocore: support `netresolve_epoll_fd()` after `netresolve_open()`
Pavel Šimerda [Wed, 12 Nov 2014 23:21:27 +0000 (00:21 +0100)]
core: support `netresolve_epoll_fd()` after `netresolve_open()`

11 years agocore: reuse netresolve-epoll for blocking mode
Pavel Šimerda [Wed, 12 Nov 2014 14:22:00 +0000 (15:22 +0100)]
core: reuse netresolve-epoll for blocking mode

11 years agocore: improve event loop integration
Pavel Šimerda [Wed, 12 Nov 2014 11:28:21 +0000 (12:28 +0100)]
core: improve event loop integration

11 years agocore: decrement channel->nqueries unconditionally
Pavel Šimerda [Wed, 12 Nov 2014 22:35:20 +0000 (23:35 +0100)]
core: decrement channel->nqueries unconditionally

11 years agocore: minor cleanups
Pavel Šimerda [Thu, 13 Nov 2014 09:53:10 +0000 (10:53 +0100)]
core: minor cleanups

11 years agocore: move callback from channel to query
Pavel Šimerda [Tue, 11 Nov 2014 17:59:49 +0000 (18:59 +0100)]
core: move callback from channel to query

11 years agoubdns: support dnssec validation
Pavel Šimerda [Tue, 11 Nov 2014 15:10:17 +0000 (16:10 +0100)]
ubdns: support dnssec validation

11 years agodns: support dnssec AD flag
Pavel Šimerda [Tue, 11 Nov 2014 15:02:10 +0000 (16:02 +0100)]
dns: support dnssec AD flag

Note: The ./tests/test-dnssec.sh will fail for ubdns because of a
limitation in libunbound.

11 years agobackends: support result security
Pavel Šimerda [Tue, 11 Nov 2014 13:29:42 +0000 (14:29 +0100)]
backends: support result security

11 years agoservices: return NULL servname for zero port
Pavel Šimerda [Tue, 11 Nov 2014 14:57:45 +0000 (15:57 +0100)]
services: return NULL servname for zero port

11 years agocore: implement per-backend timeouts and partial result timeouts
Pavel Šimerda [Fri, 7 Nov 2014 16:19:50 +0000 (17:19 +0100)]
core: implement per-backend timeouts and partial result timeouts

11 years agodns: refactor thoroughly, add tests
Pavel Šimerda [Mon, 10 Nov 2014 21:09:33 +0000 (22:09 +0100)]
dns: refactor thoroughly, add tests

Tests aren't being run as part of 'make check' as they rely on
working DNS configuration.

11 years agocore: support NETRESOLVE_CLAMP_TTL
Pavel Šimerda [Tue, 11 Nov 2014 12:05:48 +0000 (13:05 +0100)]
core: support NETRESOLVE_CLAMP_TTL

11 years agocore: default srv lookups to TCP
Pavel Šimerda [Tue, 11 Nov 2014 12:06:14 +0000 (13:06 +0100)]
core: default srv lookups to TCP

11 years agobackends: add `netresolve_backend_unwatch_fd()`
Pavel Šimerda [Tue, 11 Nov 2014 09:42:18 +0000 (10:42 +0100)]
backends: add `netresolve_backend_unwatch_fd()`

11 years agotrivial: remove unused test data
Pavel Šimerda [Mon, 10 Nov 2014 15:38:29 +0000 (16:38 +0100)]
trivial: remove unused test data

11 years agohostname: handle NULL nodename
Pavel Šimerda [Mon, 10 Nov 2014 14:59:12 +0000 (15:59 +0100)]
hostname: handle NULL nodename

11 years agodns: fix whitespace
Pavel Šimerda [Mon, 10 Nov 2014 14:34:22 +0000 (15:34 +0100)]
dns: fix whitespace

11 years agotools: fix getnameinfo port input
Pavel Šimerda [Sun, 9 Nov 2014 21:45:55 +0000 (22:45 +0100)]
tools: fix getnameinfo port input

11 years agotools: suport getnameinfo --udp (NI_DGRAM flag)
Pavel Šimerda [Sun, 9 Nov 2014 00:39:40 +0000 (01:39 +0100)]
tools: suport getnameinfo --udp (NI_DGRAM flag)

And make appropriate changes so that it warks in the netresolve
libc frontend.

11 years agotools: show port in getnameinfo query
Pavel Šimerda [Sun, 9 Nov 2014 00:34:21 +0000 (01:34 +0100)]
tools: show port in getnameinfo query

11 years agoaresdns: fix file descriptor handling
Pavel Šimerda [Sat, 8 Nov 2014 18:24:18 +0000 (19:24 +0100)]
aresdns: fix file descriptor handling

11 years agodns: consolidate lookup functions
Pavel Šimerda [Sat, 8 Nov 2014 23:53:27 +0000 (00:53 +0100)]
dns: consolidate lookup functions

11 years agodns: set cannonical name
Pavel Šimerda [Sat, 8 Nov 2014 23:57:21 +0000 (00:57 +0100)]
dns: set cannonical name

11 years agodns: support IPv6 reverse queries
Pavel Šimerda [Sat, 8 Nov 2014 23:22:07 +0000 (00:22 +0100)]
dns: support IPv6 reverse queries

11 years agodns: improve debug messages
Pavel Šimerda [Sat, 8 Nov 2014 23:16:28 +0000 (00:16 +0100)]
dns: improve debug messages

11 years agocore: handle empty node name correctly
Pavel Šimerda [Sun, 9 Nov 2014 00:00:11 +0000 (01:00 +0100)]
core: handle empty node name correctly

11 years agocore: abort on failed epoll_ctl
Pavel Šimerda [Sat, 8 Nov 2014 18:23:24 +0000 (19:23 +0100)]
core: abort on failed epoll_ctl

11 years agodns: remove dead code
Pavel Šimerda [Sat, 8 Nov 2014 23:14:50 +0000 (00:14 +0100)]
dns: remove dead code

11 years agotrivial: remove dead code.
Pavel Šimerda [Fri, 7 Nov 2014 22:21:31 +0000 (23:21 +0100)]
trivial: remove dead code.

11 years agodns: merge ubdns and aresdns backens
Pavel Šimerda [Thu, 6 Nov 2014 16:06:30 +0000 (17:06 +0100)]
dns: merge ubdns and aresdns backens

The new implementation uses ldns for all the parsing and either ubdns or
aresdns depending on preprocessor arguments. The resulting
`libnetresolve_backend_ubdns()` and `libnetresolve_backend_aresdns()`
are thus very similar in functionality, only nuances of the DNS protocol
handling and DNSSEC validation differ.

11 years agobackends: delay `cleanup()` until `setup()` or `dispatch()` finishes
Pavel Šimerda [Fri, 7 Nov 2014 20:06:41 +0000 (21:06 +0100)]
backends: delay `cleanup()` until `setup()` or `dispatch()` finishes

This change effectively removes an unwritten requirement for reentrancy
of the backend, i.e. the requirement to call netresolve backend API
functions always at the and as they could do just anything.

The backend can now safely assume that none of its functions will be
triggered by the backend API functions. In other words, calls to
functions of a single backend are serialized.

11 years agocore: refactor the state machine
Pavel Šimerda [Fri, 7 Nov 2014 08:09:20 +0000 (09:09 +0100)]
core: refactor the state machine

11 years agocore: rename QUERY_STATE_FINISHED to QUERY_STATE DONE
Pavel Šimerda [Fri, 7 Nov 2014 13:28:32 +0000 (14:28 +0100)]
core: rename QUERY_STATE_FINISHED to QUERY_STATE DONE

So that it's not confused with `netresolve_backend_finished()` which can
lead to an entirely different state if there's more processing to be
done by netresolve.

11 years agocore: move channel stuff from query.c
Pavel Šimerda [Fri, 7 Nov 2014 11:20:28 +0000 (12:20 +0100)]
core: move channel stuff from query.c

11 years agosocket: abort on bad file descriptor events
Pavel Šimerda [Fri, 7 Nov 2014 13:22:43 +0000 (14:22 +0100)]
socket: abort on bad file descriptor events

11 years agolibevent: use persistent events
Pavel Šimerda [Fri, 7 Nov 2014 08:06:08 +0000 (09:06 +0100)]
libevent: use persistent events

11 years agoaresdns: remove partial timeout support
Pavel Šimerda [Thu, 6 Nov 2014 13:47:07 +0000 (14:47 +0100)]
aresdns: remove partial timeout support

It will be handled by the library itself.

11 years agocore: refactor channel getenv code
Pavel Šimerda [Thu, 6 Nov 2014 21:01:17 +0000 (22:01 +0100)]
core: refactor channel getenv code

11 years agocore: refactor query stages a bit
Pavel Šimerda [Thu, 6 Nov 2014 20:56:30 +0000 (21:56 +0100)]
core: refactor query stages a bit

11 years agocore: improve timeout interface
Pavel Šimerda [Thu, 6 Nov 2014 20:54:42 +0000 (21:54 +0100)]
core: improve timeout interface

11 years agocore: improve fd watching code
Pavel Šimerda [Thu, 6 Nov 2014 20:53:20 +0000 (21:53 +0100)]
core: improve fd watching code

11 years agocore: silently drop redundant events
Pavel Šimerda [Thu, 6 Nov 2014 20:48:39 +0000 (21:48 +0100)]
core: silently drop redundant events

Sometimes we receive events from the application that have been already
handled.

11 years agoglib: add glib main loop integration code and test
Pavel Šimerda [Wed, 5 Nov 2014 11:48:25 +0000 (12:48 +0100)]
glib: add glib main loop integration code and test

11 years agolibevent: translate events properly
Pavel Šimerda [Wed, 5 Nov 2014 13:00:13 +0000 (14:00 +0100)]
libevent: translate events properly

11 years agoasyncns: fix and split the test into two
Pavel Šimerda [Wed, 5 Nov 2014 12:28:34 +0000 (13:28 +0100)]
asyncns: fix and split the test into two

11 years agoasyncns: improve the test
Pavel Šimerda [Wed, 5 Nov 2014 10:49:50 +0000 (11:49 +0100)]
asyncns: improve the test

11 years agoasyncns: fix and improve the test
Pavel Šimerda [Wed, 5 Nov 2014 10:44:33 +0000 (11:44 +0100)]
asyncns: fix and improve the test

11 years agoasyncns: improve the test
Pavel Šimerda [Mon, 3 Nov 2014 17:48:29 +0000 (18:48 +0100)]
asyncns: improve the test

Run at least a partial test for the native implementation.

11 years agocore: fd interface and epoll code refactored
Pavel Šimerda [Mon, 3 Nov 2014 17:48:29 +0000 (18:48 +0100)]
core: fd interface and epoll code refactored

The test for native asyncns was removed from the automated testsuite
because it doesn't run. I have yet to investigate whether its a bug
in the library or incorrect use.

11 years agobackends: catch numeric hosts as soon as possible
Pavel Šimerda [Tue, 4 Nov 2014 08:59:29 +0000 (09:59 +0100)]
backends: catch numeric hosts as soon as possible

11 years agofix make distcheck
Pavel Šimerda [Sun, 2 Nov 2014 20:29:13 +0000 (21:29 +0100)]
fix make distcheck

11 years agofix make dist
Pavel Šimerda [Sun, 2 Nov 2014 14:34:56 +0000 (15:34 +0100)]
fix make dist

11 years agoupdate README
Pavel Šimerda [Fri, 31 Oct 2014 16:56:37 +0000 (17:56 +0100)]
update README

11 years agoubdns: check ub_ctx_resolvconf() status
Pavel Šimerda [Fri, 31 Oct 2014 12:12:37 +0000 (13:12 +0100)]
ubdns: check ub_ctx_resolvconf() status

11 years agostring: read data using API whenever possible
Pavel Šimerda [Fri, 31 Oct 2014 12:08:25 +0000 (13:08 +0100)]
string: read data using API whenever possible

11 years agoupdate README and TODO
Pavel Šimerda [Thu, 30 Oct 2014 12:16:05 +0000 (13:16 +0100)]
update README and TODO

11 years agocore: move include files into 'include' whether they're published or not
Pavel Šimerda [Thu, 30 Oct 2014 12:05:26 +0000 (13:05 +0100)]
core: move include files into 'include' whether they're published or not

11 years agocore: move compat/compat.c into lib
Pavel Šimerda [Thu, 30 Oct 2014 12:02:52 +0000 (13:02 +0100)]
core: move compat/compat.c into lib

11 years agocore: merge input.c into channel.c
Pavel Šimerda [Thu, 30 Oct 2014 11:59:08 +0000 (12:59 +0100)]
core: merge input.c into channel.c

11 years agocore: fix query information getter names
Pavel Šimerda [Thu, 30 Oct 2014 11:43:35 +0000 (12:43 +0100)]
core: fix query information getter names

11 years agocore: merge output.c into query.c
Pavel Šimerda [Thu, 30 Oct 2014 11:39:49 +0000 (12:39 +0100)]
core: merge output.c into query.c

11 years agocore: split query.c from channel.c
Pavel Šimerda [Thu, 30 Oct 2014 08:15:01 +0000 (09:15 +0100)]
core: split query.c from channel.c

11 years agocore: remove libnetresolve.so binary dependency on ldns
Pavel Šimerda [Thu, 30 Oct 2014 06:48:23 +0000 (07:48 +0100)]
core: remove libnetresolve.so binary dependency on ldns

11 years agoservices: make netresolve_get_service_info reentrant
Pavel Šimerda [Thu, 30 Oct 2014 06:16:03 +0000 (07:16 +0100)]
services: make netresolve_get_service_info reentrant

 * perform per-query service list caching
 * support /etc/netresolve/services override

11 years agoupdate README and TODO
Pavel Šimerda [Wed, 29 Oct 2014 09:30:10 +0000 (10:30 +0100)]
update README and TODO

11 years agoupdate .gitignore
Pavel Šimerda [Tue, 28 Oct 2014 13:41:03 +0000 (14:41 +0100)]
update .gitignore

11 years agocompat: add asyncns frontend
Pavel Šimerda [Wed, 20 Nov 2013 08:16:05 +0000 (09:16 +0100)]
compat: add asyncns frontend

11 years agocompat: add getnameinfo, gethostbyaddr and res_query
Pavel Šimerda [Tue, 28 Oct 2014 12:52:55 +0000 (13:52 +0100)]
compat: add getnameinfo, gethostbyaddr and res_query

11 years agotools: fix getnameinfo and gethostbyaddr CLI
Pavel Šimerda [Tue, 28 Oct 2014 16:47:05 +0000 (17:47 +0100)]
tools: fix getnameinfo and gethostbyaddr CLI

11 years agocli: report EINVAL on incorrect address
Pavel Šimerda [Tue, 28 Oct 2014 16:07:29 +0000 (17:07 +0100)]
cli: report EINVAL on incorrect address

11 years agotools: add getnameinfo, gethostbyaddr and res_query
Pavel Šimerda [Sun, 26 Oct 2014 20:51:21 +0000 (21:51 +0100)]
tools: add getnameinfo, gethostbyaddr and res_query

11 years agocore: fix state handling in netresolve_query_dns
Pavel Šimerda [Tue, 28 Oct 2014 15:28:26 +0000 (16:28 +0100)]
core: fix state handling in netresolve_query_dns

11 years agocore: add netresolve_query_get_dns_answer
Pavel Šimerda [Tue, 28 Oct 2014 15:28:52 +0000 (16:28 +0100)]
core: add netresolve_query_get_dns_answer

11 years agorefactor node and service output code
Pavel Šimerda [Tue, 28 Oct 2014 07:27:06 +0000 (08:27 +0100)]
refactor node and service output code

11 years agotools: improve getaddrinfo output
Pavel Šimerda [Sun, 26 Oct 2014 20:17:34 +0000 (21:17 +0100)]
tools: improve getaddrinfo output

11 years agoinput: add netresolve_query_set_user_data()
Pavel Šimerda [Wed, 22 Oct 2014 14:40:58 +0000 (16:40 +0200)]
input: add netresolve_query_set_user_data()

And remove netresolve_set_user_data(). This is possible because of
earlier changes that ensure no callbacks are called before calling
netresolve_query_dispatch().

11 years agonsswitch: fix libnss_netresolve version
Pavel Šimerda [Sat, 25 Oct 2014 21:47:51 +0000 (23:47 +0200)]
nsswitch: fix libnss_netresolve version

11 years agobackends: add asyncns backend
Pavel Šimerda [Fri, 24 Oct 2014 08:34:25 +0000 (10:34 +0200)]
backends: add asyncns backend

11 years agotools: add getaddrinfo and gethostbyname tools
Pavel Šimerda [Wed, 22 Oct 2014 17:34:13 +0000 (19:34 +0200)]
tools: add getaddrinfo and gethostbyname tools

11 years agocore: delay query success/failure until netresolve_dispatch_fd()
Pavel Šimerda [Wed, 22 Oct 2014 14:43:15 +0000 (16:43 +0200)]
core: delay query success/failure until netresolve_dispatch_fd()

This is critical to make the netresolve API consistent and also to make
it possible to set `user_data` (will come in a separate patch). Success
or failure are now consistently reported after a call to
`netresolve_dispatch_fd()`.

11 years agocompat: test getaddrinfo/gethostbyname from a script
Pavel Šimerda [Wed, 22 Oct 2014 12:59:53 +0000 (14:59 +0200)]
compat: test getaddrinfo/gethostbyname from a script

11 years agocompat: accept ai_flags set by getaddrinfo for now
Pavel Šimerda [Wed, 22 Oct 2014 15:16:44 +0000 (17:16 +0200)]
compat: accept ai_flags set by getaddrinfo for now

11 years agocompat: use AF_INET in legacy gethostbyname as specified by POSIX
Pavel Šimerda [Wed, 22 Oct 2014 14:37:10 +0000 (16:37 +0200)]
compat: use AF_INET in legacy gethostbyname as specified by POSIX

11 years agologging: don't require NL character
Pavel Šimerda [Sun, 19 Oct 2014 10:10:05 +0000 (12:10 +0200)]
logging: don't require NL character

11 years agostring: support raw sockets
Pavel Šimerda [Wed, 22 Oct 2014 14:43:58 +0000 (16:43 +0200)]
string: support raw sockets

11 years agowrapresolve: fix installed script
Pavel Šimerda [Fri, 17 Oct 2014 09:49:17 +0000 (11:49 +0200)]
wrapresolve: fix installed script

11 years agolibc: return on error
Pavel Šimerda [Fri, 17 Oct 2014 09:46:46 +0000 (11:46 +0200)]
libc: return on error

11 years agotools: add wrapresolve command
Pavel Šimerda [Fri, 17 Oct 2014 08:50:47 +0000 (10:50 +0200)]
tools: add wrapresolve command

11 years agoubdns: fix single protocol requests
Pavel Šimerda [Fri, 17 Oct 2014 09:11:16 +0000 (11:11 +0200)]
ubdns: fix single protocol requests

11 years agoupdate README and TODO
Pavel Šimerda [Sun, 12 Oct 2014 12:56:49 +0000 (14:56 +0200)]
update README and TODO

11 years agosupport reverse and dns queries
Pavel Šimerda [Thu, 27 Mar 2014 09:13:42 +0000 (10:13 +0100)]
support reverse and dns queries

This page took 0.125583 seconds and 5 git commands to generate.