History log of /openbsd-src/lib/libc/asr/getaddrinfo_async.c (Results 26 – 50 of 63)
Revision Date Author Comments
# 8f32d9f2 25-May-2015 jca <jca@openbsd.org>

Kill outdated comment.

ok eric@


# 86648719 25-May-2015 eric <eric@openbsd.org>

Skip search domains iteration if RES_DNSRCH and/or RES_DEFNAMES is unset.

prodded by Brad
ok jca@


# d6498094 05-May-2015 jca <jca@openbsd.org>

AI_ADDRCONFIG: skip loopback addresses, not loopback interfaces.

This is what RFC3493 suggests. Fixes AI_ADDRCONFIG on setups where
global addresses are configured only on loopback interfaces.

Dis

AI_ADDRCONFIG: skip loopback addresses, not loopback interfaces.

This is what RFC3493 suggests. Fixes AI_ADDRCONFIG on setups where
global addresses are configured only on loopback interfaces.

Discussed with and ok eric@ gilles@

show more ...


# 9c0437c0 05-May-2015 jca <jca@openbsd.org>

Move the AI_ADDRCONFIG setup to its own function.

Input from and ok gilles@ eric@


# 8b59b78c 14-Feb-2015 jca <jca@openbsd.org>

Limit AI_ADDRCONFIG effects to DNS queries.

This is what RFC 2553 initially described, sadly RFC 3493 stopped
limiting scope to DNS. This can result in nonsensical failures with
loopback addresses,

Limit AI_ADDRCONFIG effects to DNS queries.

This is what RFC 2553 initially described, sadly RFC 3493 stopped
limiting scope to DNS. This can result in nonsensical failures with
loopback addresses, link-local addresses, raw addresses and /etc/hosts
entries.

with and ok eric@ sperreault@

show more ...


# 0203ec73 30-Jan-2015 gilles <gilles@openbsd.org>

fix a possible NULL-deref when trying to deref ifa->ifa_addr

ok eric@


# e7e445a1 14-Jan-2015 deraadt <deraadt@openbsd.org>

change _yp_domain[] to HOST_NAME_MAX+1, and re-arrange those who include
it to get limits.h early enough


# 14434de6 18-Nov-2014 krw <krw@openbsd.org>

Nuke some obvious #include duplications.

ok espie@ deraadt@ millert@ tedu@


# 241db059 15-Sep-2014 guenther <guenther@openbsd.org>

When fopen()ing internal to libc (the API doesn't support the use
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.

ok miod@


# ab50be5e 23-Jul-2014 eric <eric@openbsd.org>

Make queries using the search list for hostname lookups fail with
NO_DATA/EAI_NODATA when the hostname param is an empty string.
So far, they were using the entries in the search list with no
additio

Make queries using the search list for hostname lookups fail with
NO_DATA/EAI_NODATA when the hostname param is an empty string.
So far, they were using the entries in the search list with no
additional component, which is not really expected.

reported by jsing@ and a few others

ok deraadt@, "makes sense" jsing@

show more ...


# b6432b68 10-May-2014 chl <chl@openbsd.org>

remove warning by adding explicit parentheses around && within ||

ok sperreault@


# 20149d17 28-Apr-2014 sperreault <sperreault@openbsd.org>

Implement AI_ADDRCONFIG

This is a getaddrinfo() flag that is defined thusly in RFC 3493:

If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be
returned only if an IPv4 address is co

Implement AI_ADDRCONFIG

This is a getaddrinfo() flag that is defined thusly in RFC 3493:

If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be
returned only if an IPv4 address is configured on the local system,
and IPv6 addresses shall be returned only if an IPv6 address is
configured on the local system. The loopback address is not
considered for this case as valid as a configured address.

For example, when using the DNS, a query for AAAA records should
occur only if the node has at least one IPv6 address configured
(other than IPv6 loopback) and a query for A records should occur
only if the node has at least one IPv4 address configured (other
than the IPv4 loopback).

The flag is set by default when hints is NULL.

ok Eric Faurot, Jason McIntyre

show more ...


# d216d6b1 26-Mar-2014 eric <eric@openbsd.org>

Make the asr API public. Install asr.h to /usr/include.h and manpages.
Include tweaks suggested by mpi@

ok deraadt@


# 5be03f8f 25-Mar-2014 eric <eric@openbsd.org>

Cleanup and simplify the API to be exposed. Use better names for
structures, functions and defines.

discussed with and ok deraadt@ guenther@


# f90bf415 14-Mar-2014 eric <eric@openbsd.org>

prefix structure names to avoid ambiguity and possible collisions when
the API gets public.

ok deraadt@


# 20f7c2a3 03-Mar-2014 eric <eric@openbsd.org>

fix support for HOSTALIASES.

reported by tedu@
ok tedu@ deraadt@


# 0af765e7 26-Feb-2014 deraadt <deraadt@openbsd.org>

need more #include files for resolv.h, for the non-YP case, which happens
on the install media...
ok eric


# 01b887f7 26-Feb-2014 eric <eric@openbsd.org>

Do not restrict chars in dname during label expansion, but validate resulting
hostnames before returning them to the caller.

ok deraadt@


# 3e41c455 17-Feb-2014 eric <eric@openbsd.org>

Better search strategy for getaddrinfo. The address family loop must
be done "inside" the search domain loop, not the other way round.


# 5bd9e5c2 12-Jul-2013 eric <eric@openbsd.org>

Make some symbols static and prefix all visible symbols with asr_
to prevent collisions with third-party programs.

suggested by sthen@, ok theo@


# 6a7a3d64 01-Jun-2013 eric <eric@openbsd.org>

Make hostaliases work for gethostbyname() and getaddrinfo() when
looking into /etc/hosts. Remove the alias check from the search
domain iteration. Instead, take a shortcut to res_query_async_ctx() i

Make hostaliases work for gethostbyname() and getaddrinfo() when
looking into /etc/hosts. Remove the alias check from the search
domain iteration. Instead, take a shortcut to res_query_async_ctx() in
res_search_async_ctx().

show more ...


# c5221d45 30-Apr-2013 eric <eric@openbsd.org>

Do not take external buffers for storing DNS responses in the internal
async API. That is actually useless and it makes the code more
complicated. The required buffers are always allocated when nee

Do not take external buffers for storing DNS responses in the internal
async API. That is actually useless and it makes the code more
complicated. The required buffers are always allocated when needed.

show more ...


# 024ee4aa 30-Apr-2013 eric <eric@openbsd.org>

copy input flags in result addrinfo structures.


# ff1bfb95 08-Apr-2013 chrisz <chrisz@openbsd.org>

Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right.
This fixes hostname resolution for OpenVPN 2.3.1.

ok eric@.


# 43f9b988 01-Apr-2013 deraadt <deraadt@openbsd.org>

space cleanup; ok eric


123