summaryrefslogtreecommitdiff
path: root/include/netdb.h
AgeCommit message (Collapse)Author
2014-04-28Implement AI_ADDRCONFIGsperreault
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
2012-09-15Improve POSIX/SUS compliance of <netdb.h>, <sys/socket.h>, and <sys/un.h>.Philip Guenthe
Much ports testing of various versions by naddy@ and jasper@ ok matthew@, miller@
2012-01-17net_addrcmp() dies. found out to be a horrific function by ericTheo de Raadt
ok guenther
2011-07-07fix typos; while here, improve spacing in comments.Igor Sobrado
changes to libevent and zlib headers sent to the upstream maintainers. ok jmc@ (for typos), millert@
2011-04-05Add AI_FQDN flag to getaddrinfo(3). Prompted by discussions with djm@Matthew Dempsky
about cert checking in OpenSSH. Man page wording tweaks thanks to jmc@. ok henning@, jmc@; positive feedback from djm@, ajacoutat@ Committing now to reuse guenther@'s libc minor bump instead of cranking it again, as suggested by deraadt@.
2009-06-02- define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)Jasper Lievisse Adriaanse
hint from claudio@, ok millert@
2009-05-07fix confusing comment; ok krw@Jacek Masiulaniec
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-06-08Make gethostbyaddr() prototype match POSIX. This means len is nowTodd C. Miller
unsigned but there is no ABI change. OK deraadt@
2004-12-20gai_strerror() should return const char *; OK deraadt@Todd C. Miller
2004-11-17remove NI_WITHSCOPEIDJun-ichiro itojun Hagino
2004-10-25Change return value of reentrant getproto* and getserv* to match theTodd C. Miller
IBM/Digital API.
2004-10-17Reentrant versions of getprotoent(3) and getservent(3). Adapted fromTodd C. Miller
changes in NetBSD by Christos. OK otto@
2004-04-14implement RFC3493 AI_NUMERICSERV. tedu okJun-ichiro itojun Hagino
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-06-03compatiblity -> compatibilityTheo de Raadt
decriptor -> descriptor authentciated -> authenticated transmition -> transmission
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-08-06add getrrsetbyname(3) - API to retrieve arbitrary DNS recordsJakob Schlyter
2001-06-05repair copyright notices for NRL & cmetz; cmetzTheo de Raadt
2001-02-21change ai_addrlen to socklen_t. now it conforms toJun-ichiro itojun Hagino
draft-ietf-ipngwg-rfc2553bis-03.txt. backward compatibility concern: - should be safe to change signed to unsigned, as we never return negative value. - sizeof(int) is 4 for all archs, so there's no size change with socklen_t (= u_int32_t) commented by deraadt.
2000-10-04Remove parameter names in prototypes (always a bad idea)Marc Espie
2000-05-15correct type of 2nd argument to meet RFC2553. (this should raise no ABIJun-ichiro itojun Hagino
problem due to type promotion). PR 1228.
2000-02-09revise extended scoped address format support. delimiter and the orderJun-ichiro itojun Hagino
is changed, based on discussion in ipngwg scoped address cabal. past code: fe80::1@de0 now: de0%fe80::1 this will be in sync with next extended address format proposal (which should be final - I don't want to make this kind of change again).
1999-12-30replace NRL get{addr,name}info with KAME get{addr,name}info.Jun-ichiro itojun Hagino
removed functionality: new code will not return AF_LOCAL addrinfo struct. added funtionality: SOCK_RAW is permitted as ai_socktype (no servname allowed). draft-ietf-ipngwg-scopedaddr-format-00.txt
1999-07-03proto net_addrcmp()Theo de Raadt
1999-06-23Added some protocol independent interfaces (supposedly IPv6 support APIs, butcmetz
ones that are useful for all protocols, not just IPv6).
1999-06-05getaddrinfo() info prototypes and such; cmetzTheo de Raadt
1997-04-05Use in_addr_t not u_long.Todd C. Miller
1997-03-13BIND 4.9.5 includes.Jason Downs
1996-02-19netbsd: bind 4.9.3dm
1995-10-18initial import of NetBSD treeTheo de Raadt