netresolve.git
11 years agocore: sort IPv6 paths before IPv4 paths
Pavel Šimerda [Tue, 14 Jan 2014 14:34:52 +0000 (15:34 +0100)]
core: sort IPv6 paths before IPv4 paths

11 years agodns: disable domain search in ares
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.

11 years agocli: support long options
Pavel Šimerda [Wed, 25 Dec 2013 17:16:12 +0000 (18:16 +0100)]
cli: support long options

11 years agocompat: add some comments to libc implementation
Pavel Šimerda [Mon, 13 Jan 2014 11:53:26 +0000 (12:53 +0100)]
compat: add some comments to libc implementation

11 years agoupdate README and TODO
Pavel Šimerda [Mon, 13 Jan 2014 11:23:50 +0000 (12:23 +0100)]
update README and TODO

11 years agorefactor libc compatibility library
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

11 years agorename netresolve_query_cancel to netresolve_query_done
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.

12 years agorework the API
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.

12 years agoswitch to the BSD 2-clause license
Pavel Šimerda [Tue, 26 Nov 2013 08:17:26 +0000 (09:17 +0100)]
switch to the BSD 2-clause license

12 years agoavoid segfaults
Pavel Šimerda [Mon, 25 Nov 2013 10:45:27 +0000 (11:45 +0100)]
avoid segfaults

12 years agodns: add basic support for SRV records
Pavel Šimerda [Wed, 20 Nov 2013 06:40:46 +0000 (07:40 +0100)]
dns: add basic support for SRV records

12 years agoextend path with priority and weight
Pavel Šimerda [Thu, 21 Nov 2013 23:39:42 +0000 (00:39 +0100)]
extend path with priority and weight

12 years agoturn flags into separate APIs
Pavel Šimerda [Thu, 21 Nov 2013 23:34:42 +0000 (00:34 +0100)]
turn flags into separate APIs

12 years agoformer posix compatibility library is now libc compatibility library
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.

12 years agoupdate README and TODO
Pavel Šimerda [Sat, 9 Nov 2013 14:41:58 +0000 (15:41 +0100)]
update README and TODO

12 years agoreport errors when backend finished/failed out of order
Pavel Šimerda [Thu, 14 Nov 2013 13:02:33 +0000 (14:02 +0100)]
report errors when backend finished/failed out of order

12 years agosecurity: use secure_getenv instead of getenv
Pavel Šimerda [Mon, 18 Nov 2013 16:56:41 +0000 (17:56 +0100)]
security: use secure_getenv instead of getenv

12 years agotrivial: fix utils headers
Pavel Šimerda [Tue, 12 Nov 2013 09:05:43 +0000 (10:05 +0100)]
trivial: fix utils headers

12 years agotrivial: update .vimrc
Pavel Šimerda [Thu, 14 Nov 2013 19:37:34 +0000 (20:37 +0100)]
trivial: update .vimrc

12 years agotrivial: update .gitignore
Pavel Šimerda [Thu, 14 Nov 2013 19:35:15 +0000 (20:35 +0100)]
trivial: update .gitignore

12 years agoEXPERIMENTAL: implement happy eyeballs for TCP `connect()`
Pavel Šimerda [Mon, 11 Nov 2013 06:22:46 +0000 (07:22 +0100)]
EXPERIMENTAL: implement happy eyeballs for TCP `connect()`

12 years agoadd netconnect tool for socket API testing
Pavel Šimerda [Thu, 14 Nov 2013 18:20:46 +0000 (19:20 +0100)]
add netconnect tool for socket API testing

12 years agoimprove debugging
Pavel Šimerda [Sat, 16 Nov 2013 16:55:33 +0000 (17:55 +0100)]
improve debugging

12 years agofix make distcheck
Pavel Šimerda [Thu, 14 Nov 2013 18:40:41 +0000 (19:40 +0100)]
fix make distcheck

12 years agomove request debugging to the library
Pavel Šimerda [Thu, 14 Nov 2013 17:41:22 +0000 (18:41 +0100)]
move request debugging to the library

12 years agocall backend_cleanup() only from backend.c
Pavel Šimerda [Sat, 16 Nov 2013 16:31:31 +0000 (17:31 +0100)]
call backend_cleanup() only from backend.c

12 years agoreturn bool from _netresolve_dispatch_fd()
Pavel Šimerda [Sat, 16 Nov 2013 17:08:47 +0000 (18:08 +0100)]
return bool from _netresolve_dispatch_fd()

12 years agointernal API for adding/removing timeouts
Pavel Šimerda [Sat, 16 Nov 2013 17:07:27 +0000 (18:07 +0100)]
internal API for adding/removing timeouts

12 years agoexec: unwatch and close sockets exactly once
Pavel Šimerda [Sat, 16 Nov 2013 16:55:00 +0000 (17:55 +0100)]
exec: unwatch and close sockets exactly once

12 years agoexec: parse returned path lines
Pavel Šimerda [Sat, 16 Nov 2013 16:54:00 +0000 (17:54 +0100)]
exec: parse returned path lines

12 years agoconvert port numbers using htons
Pavel Šimerda [Thu, 14 Nov 2013 18:50:40 +0000 (19:50 +0100)]
convert port numbers using htons

Also change the testing port to a nonprivileged one.

12 years agorename state RESOLVING to WAITING
Pavel Šimerda [Thu, 14 Nov 2013 13:03:00 +0000 (14:03 +0100)]
rename state RESOLVING to WAITING

Socket connection API will use that state as well.

12 years ago`bind()` directly from `netresolve_backend_add_path()`
Pavel Šimerda [Wed, 13 Nov 2013 19:12:39 +0000 (20:12 +0100)]
`bind()` directly from `netresolve_backend_add_path()`

12 years agoignore AF_UNSPEC family requests in `unix` backend
Pavel Šimerda [Wed, 13 Nov 2013 17:35:53 +0000 (18:35 +0100)]
ignore AF_UNSPEC family requests in `unix` backend

This could cause problems to applications that expect AF_INET or
AF_INET6 only. The option to use `unix` backend for AF_UNSPEC should be
opt-in, not opt-out.

Reported-by: Miloslav Trmač <mitr@redhat.com>
12 years agotrivial: only use netresolve_backend_t in backend.c
Pavel Šimerda [Tue, 12 Nov 2013 08:01:52 +0000 (09:01 +0100)]
trivial: only use netresolve_backend_t in backend.c

12 years agorename libnetresolve-getaddrinfo to libnetresolve-posix
Pavel Šimerda [Mon, 11 Nov 2013 15:02:54 +0000 (16:02 +0100)]
rename libnetresolve-getaddrinfo to libnetresolve-posix

Add `gethostbyname()` implementation as well.

12 years agosanity check epoll file descriptor count
Pavel Šimerda [Mon, 11 Nov 2013 08:49:11 +0000 (09:49 +0100)]
sanity check epoll file descriptor count

12 years agorefactor state handling
Pavel Šimerda [Mon, 11 Nov 2013 04:25:01 +0000 (05:25 +0100)]
refactor state handling

12 years agoupdate README
Pavel Šimerda [Fri, 8 Nov 2013 21:51:53 +0000 (22:51 +0100)]
update README

12 years agoavoid structs with identical name in backends
Pavel Šimerda [Fri, 8 Nov 2013 17:04:02 +0000 (18:04 +0100)]
avoid structs with identical name in backends

Reported-by: little.owl
12 years agofix e-mail address in configure.ac
Pavel Šimerda [Fri, 8 Nov 2013 16:57:27 +0000 (17:57 +0100)]
fix e-mail address in configure.ac

12 years agoadd nonblocking socket API
Pavel Šimerda [Thu, 7 Nov 2013 06:24:47 +0000 (07:24 +0100)]
add nonblocking socket API

Use the new callbacks to pick up file descriptors of newly bound or
connected sockets.

12 years agoupdate TODO
Pavel Šimerda [Wed, 6 Nov 2013 10:41:05 +0000 (11:41 +0100)]
update TODO

12 years agoadd LGPL2.1+ license headers to source files and README
Pavel Šimerda [Wed, 6 Nov 2013 11:02:44 +0000 (12:02 +0100)]
add LGPL2.1+ license headers to source files and README

12 years agochange 'Data *data' to 'struct priv *priv'
Pavel Šimerda [Wed, 6 Nov 2013 10:15:27 +0000 (11:15 +0100)]
change 'Data *data' to 'struct priv *priv'

Reported-by: Jiri Pirko <jiri@resnulli.us>
12 years agoinitial commit
Pavel Šimerda [Tue, 24 Sep 2013 23:07:31 +0000 (01:07 +0200)]
initial commit

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