summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getaddrinfo.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* strlen(3) returns size_t.ray2007-02-181-4/+6
| | | | OK itojun@.
* Remove duplicate code. No functional change.ray2007-02-171-39/+22
| | | | OK itojun@, moritz@, and millert@.
* Remove two mutexes by replacing getservbyname() and getservbyport()ray2007-02-151-9/+8
| | | | | | calls with their reentrant versions. OK millert@.
* Remove int pretending to be a size_t.ray2007-02-141-5/+2
| | | | OK millert@.
* change semantics of ff01::/16 to interface local multicastitojun2006-11-171-2/+3
| | | | | | (to sync up with more recent IPv6 spec) ok from: deraadt mcbride
* Clarify strlcpy code by explicitly naming variable `len' andray2006-04-181-5/+6
| | | | | | | separating out each step. Inspired during miscommunication with tedu@. OK deraadt@
* Remove str2number(), use strtonum(3) instead.ray2006-04-141-44/+20
| | | | | | | | Fix some type mismatches. Replace magic numbers. Remove superfluous strlen(3) calls. Earlier diff OK kjell@, OK deraadt@
* Pass size of correct variable to memset().ray2006-03-221-2/+2
| | | | | | From Alexey Dobriyan. OK otto@
* fix spelling mistake (in comment);jmc2005-07-181-2/+2
| | | | from ray lai;
* make the resolver stat resolv.conf and update if it changes.tedu2005-03-301-5/+5
| | | | useful feedback and ok deraadt@
* ansify. ok deraadt@ moritz@otto2005-03-251-80/+31
|
* major bump to libc and libpthread to break the dependency of amarc2004-06-071-2/+2
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* implement RFC3493 AI_NUMERICSERV. tedu okitojun2004-04-141-46/+14
|
* bug library/3297: lib/libc/net/get{addr,name}info should share mutexmarc2003-07-211-2/+3
| | | | 'Looks right' deraadt@
* fill ai_canonname field for numeric hostname, by the given hostname.itojun2003-05-141-8/+26
| | | | folows new recommendation in RFC3493. markus ok
* If hostname != NULL, hostname is not a numeric string, and AI_NUMERICHOSTjason2003-03-171-3/+3
| | | | is set, return EAI_NONAME like RFC2553 specifies. millert/itojun ok.
* strlcpy, check retval from sprintfitojun2003-03-041-2/+2
|
* thread safer libc (note: safer, not safe)marc2003-01-281-29/+47
| | | | | | | | | | Access to the global _res structure replaced by pointers to a per thread instance. If unthreaded the pointer is to the global structure. Also replaced a 64k stack array with malloc-ed memory so threaded aps (with a default 64k stack) have a chance at working. ok deraadt@
* allocate 64K recieve buffer for DNS responses.itojun2002-08-271-18/+33
|
* drop AAAA reply with IPv4 mapped address. sync w/kameitojun2002-08-221-1/+9
| | | | draft-itojun-v6ops-v4mapped-harmful-00.txt
* kill more strcpyderaadt2002-07-251-5/+4
|
* have _THREAD_PRIVATE_MUTEX for DNS/YP/hosts lookup.itojun2002-07-241-3/+16
|
* more type pedantitojun2002-07-011-2/+2
|
* lint clean (and don't mixup signed/unsigned). from martin husemannitojun2002-07-011-12/+12
|
* make more pedantic check on strtoul. from deraadt, sync w/kameitojun2002-07-011-8/+12
|
* correct port range check. from deraadt. sync w/kame. bind-bugs have ↵itojun2002-06-291-2/+3
| | | | already notified.
* %d/%u mixup (in #ifdef DEBUG)itojun2002-06-271-2/+2
|
* correct bad practice in the code - it uses two changing variablesitojun2002-06-261-10/+7
| | | | | | | to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. this fix is NOT critical.
* Manual cleanup of remaining userland __P use (excluding packages maintained ↵millert2002-02-171-23/+21
| | | | outside the tree)
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-161-16/+16
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* label abort() from inside library as ILLEGALderaadt2002-01-021-3/+3
|
* use snprintf, not sprintf. sync with kameitojun2001-08-201-2/+2
|
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-3/+2
|
* support EDNS0 (RFC2671) buffer size notification on DNS queries.itojun2001-06-111-1/+4
| | | | | | | | | "options edns0" in /etc/resolv.conf will enable the behavior. no behavior change if you don't have the line. see resolv.conf(5) for more details. EDNS0 is useful for avoiding TCP DNS queries/replies on larger DNS responses. also, draft-ietf-dnsext-message-size-* plans to mandate EDNS0 support for DNS clients that support IPv6 transport.
* on /etc/hosts lookup, set "official host name" (the leftmost hostname)itojun2000-08-311-4/+7
| | | | | into ai_canonname. this is to synchronize with practice in gethostby*. comment from ume@mahoroba.org. sync with kame.
* Wallderaadt2000-08-221-2/+3
|
* reject empty scopeid/numeric portname. sync with kame.itojun2000-07-091-9/+16
|
* return EAI_NODATA, instead of EAI_NONAME, on name resolution errors.itojun2000-07-051-18/+18
| | | | | EAI_NONAME does not make sense in these situations. from kame. From: enami@netbsd.org
* translate DNS error code into getaddrinfo error code (EAI_xxx). PR 1229.itojun2000-05-151-2/+27
|
* remove unused struct def. more sanity check for NULL.itojun2000-04-271-16/+16
|
* add $KAME$ for future version trackingitojun2000-04-261-1/+2
|
* remove #if 0'ed portion which we will never revisit (no behavior change).itojun2000-04-261-14/+1
|
* sync with latest kame.itojun2000-04-261-19/+21
| | | | | | - completely disable AI_ADDRCONFIG support (post RFC2553) since it does not work for PF_UNSPEC. - remove unused variables, some delint.
* correct boundary check. XXX should avoid code duplicate here...itojun2000-04-251-2/+2
|
* workaround against name servers which return NXDOMAIN/SERVFAIL on IPv4 onlyitojun2000-03-161-2/+4
| | | | | node (the srever server should return acount = 0 without error). NetBSD PR: 9621
* fix error handling in yp case.itojun2000-03-131-2/+3
|
* make getaddrinfo obey search order declared in resolv.conf.itojun2000-02-251-142/+924
| | | | | the code duplicate is necessary because there's no low-level resolver function that looks up database against "any address family" query.
* remove extra #ifdef (USE_GETIPNODEBY)itojun2000-02-211-9/+1
|
* to synchronize with progress of discussion for postitojun2000-02-171-2/+2
| | | | | | | | draft-ietf-ipngwg-scopedaddr-format-00.txt (will be 01), use "address%interface" notation for extended scoped IPv6 address. NOTE: the change affects link-local addresses only. I hope it to be the final change on it.....
* add more comments from recent kame.itojun2000-02-161-5/+37
| | | | | | | | prepare to swap extended scoped address notation. fe80::1%de0 is the most promised candidate, but since it is still very draft, i'm not sure when to switch - if you have any idea please let me know. in other words, do i allowed to change it every week? :-P (NOTE it is only for "extended" scoped address notation, which is not for daily use)