Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | reduce cast. | ume | 2005-05-27 | 1 | -3/+3 |
| | | | | MFC after: 1 week | ||||
* | - The ai_addrlen of a struct addrinfo used to be a size_t, per | ume | 2005-05-15 | 6 | -25/+37 |
| | | | | | | | | | | | | | | | | RFC 2553. In XNS5.2, and subsequently in POSIX-2001 and RFC 3493, it was changed to a socklen_t. And, the n_net of a struct netent used to be an unsigned long integer. In XNS5, and subsequently in POSIX-2001, it was changed to an uint32_t. To accomodate for this while preserving ABI compatibility with the old interface, we need to prepend or append 32 bits of padding, depending on the (LP64) architecture's endianness. - Correct 1st argument of getnetbyaddr() to uint32_t on 32 bit arch. Stay as is on 64 bit arch for ABI backward compatibility for now. Reviewed by: das, peter MFC after: 2 weeks | ||||
* | Submitted by: Jinmei Tatuya, Hajimu Umemoto | gnn | 2005-05-14 | 2 | -4/+4 |
| | | | | | | | | | | Reviewed by: rwatson at freebsd dot org Approved by: rwatson at freebsd dot org MFC after: 1 week Fix the matchlen() function so that it handles the IPv4 (AF_INET) case correctly. Until now it has been treating IPv4 addresses as if they were IPv6 which could lead to corruption errors. | ||||
* | raise readability bit. | ume | 2005-05-13 | 1 | -7/+7 |
| | |||||
* | free ypbuf only when yp_match() succeed. | ume | 2005-05-13 | 1 | -1/+1 |
| | |||||
* | NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines | ume | 2005-05-13 | 2 | -21/+8 |
| | | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now. | ||||
* | fix signed/unsigned comparison warnings. | ume | 2005-05-03 | 1 | -5/+5 |
| | | | | Obtained from: NetBSD | ||||
* | the 3rd argument of getsockname() should be socklen_t*. | ume | 2005-05-02 | 2 | -2/+4 |
| | | | | Submitted by: stefanf | ||||
* | oops, we don't need previous change. | ume | 2005-05-01 | 1 | -8/+4 |
| | |||||
* | make it compilable without YP definition. | ume | 2005-05-01 | 1 | -5/+9 |
| | |||||
* | don't see RES_USE_INET6 when called from getipnodeby*(). | ume | 2005-05-01 | 1 | -6/+14 |
| | |||||
* | oops, gethostbyaddr(3) must return h_addr as an IPv4-mapped | ume | 2005-04-30 | 3 | -6/+17 |
| | | | | | IPv6 address when RES_USE_INET6 was set, according to RFC 2133 section 6.2. | ||||
* | handling RES_USE_INET6 better. | ume | 2005-04-30 | 1 | -4/+5 |
| | |||||
* | _ht_gethostbyaddr didn't handle RES_USE_INET6 correctly. | ume | 2005-04-30 | 1 | -1/+1 |
| | |||||
* | _gethostbynisname() didn't support RES_USE_INET6. | ume | 2005-04-30 | 1 | -0/+9 |
| | |||||
* | _ht_gethostbyname didn't handle RES_USE_INET6 correctly. | ume | 2005-04-30 | 1 | -6/+18 |
| | |||||
* | - do validation check and IPv4-mapped IPv6 address handling before | ume | 2005-04-29 | 2 | -36/+41 |
| | | | | | | | | | any query. - don't query against IPv6 link-local address. - use IN6_IS_ADDR_V4{MAPPED,COMPAT} macros. - use memcpy() instead of bcopy(). Inspired by: NetBSD | ||||
* | NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno. | ume | 2005-04-29 | 4 | -4/+4 |
| | |||||
* | our get{addr,name}info() is considered thread-safe. | ume | 2005-04-29 | 2 | -8/+0 |
| | |||||
* | we cannot use inet_ntoa(3), here. so, use inet_ntop(3), instead. | ume | 2005-04-29 | 2 | -5/+11 |
| | |||||
* | sync _map_v4v6_host*() with bind9's. it treats align better bit. | ume | 2005-04-28 | 4 | -18/+15 |
| | | | | Obtained from: BIND9 | ||||
* | we don't need mutex lock to call _gethostbynis*(), anymore. | ume | 2005-04-28 | 2 | -19/+2 |
| | |||||
* | make gethostby*() thread-safe. | ume | 2005-04-28 | 6 | -285/+478 |
| | |||||
* | _gethostbynis{addr,name}() can handle an IPv6, now. | ume | 2005-04-28 | 1 | -16/+11 |
| | |||||
* | make getnetby*() thread-safe. | ume | 2005-04-28 | 8 | -175/+339 |
| | |||||
* | hide implementation specific internal functions from netdb.h. | ume | 2005-04-27 | 6 | -0/+17 |
| | | | | it is needed to make get{host,net}by*() thread-safe. | ||||
* | our get{proto,serv}by*() use a thread-specific data space. | ume | 2005-04-26 | 2 | -2/+2 |
| | |||||
* | add IPv6 awareness for NIS query of gethostby*(). | ume | 2005-04-26 | 2 | -25/+56 |
| | | | | Inspired by: NetBSD | ||||
* | ensure parsing numeric address before any host query. | ume | 2005-04-25 | 2 | -100/+126 |
| | | | | Inspired by: NetBSD | ||||
* | remove unused variable. | ume | 2005-04-25 | 1 | -3/+1 |
| | |||||
* | if last line didn't have trailing space, network address was also | ume | 2005-04-24 | 1 | -10/+11 |
| | | | | treated as an alias. | ||||
* | - add getproto{byname,bynumber,ent}_r for internal use within libc. | ume | 2005-04-19 | 4 | -53/+181 |
| | | | | - make getproto{byname,bynumber,ent} thread-safe. | ||||
* | - nuke deprecated and unused getnodeby(3). | ume | 2005-04-19 | 1 | -31/+0 |
| | | | | | | - remove unused variable. Obtained from: KAME | ||||
* | rename the NIS related fields to have yp_ prefix. | ume | 2005-04-18 | 4 | -38/+38 |
| | | | | Suggested by: delphij | ||||
* | Do not check whether a pointer is NULL, since free(3) already takes care of | delphij | 2005-04-18 | 1 | -6/+3 |
| | | | | | | this case. Reviewed by: ume | ||||
* | Fix build for !YP case. | delphij | 2005-04-17 | 1 | -0/+4 |
| | | | | | BTW. Shall we change these fields to have yp_ prefix? That will make the code easier to read. | ||||
* | libc-internal interfaces should have two underscores in front | ume | 2005-04-17 | 4 | -12/+12 |
| | | | | | | of their names. Pointed out by: das | ||||
* | Wrong working directory, sorry. The previous patch was what I have | delphij | 2005-04-17 | 1 | -5/+0 |
| | | | | | | seen in NetBSD's tree, and this one is what I have submitted for review. Pointy hat to: me | ||||
* | Remove a check about whether sa->sa_len is equal to salen from | delphij | 2005-04-17 | 1 | -0/+2 |
| | | | | | | | | | | | getnameinfo(3). POSIX standard does not require a sa_len field in sockaddr struct, hence such requirement will cause problem for portability. PR: standards/80008 Requested by: Xin Liu <lx@knight.6test.edu.cn> Reviewed by: freebsd-standards (das) MFC After: 2 weeks | ||||
* | Now, our getservbyname(3) is thread-safe. So, we don't need | ume | 2005-04-15 | 1 | -14/+1 |
| | | | | to protect it with mutex lock. | ||||
* | - add getserv{byname,byport,ent}_r for internal use within libc. | ume | 2005-04-15 | 4 | -127/+288 |
| | | | | | | - make getserv{byname,byport,ent} thread-safe. Reviewed by: gnn | ||||
* | hostalias() is not thread-safe. So, introduce _res_hostalias() | ume | 2005-04-15 | 3 | -14/+29 |
| | | | | | | and use it. Obtained from: BIND9 | ||||
* | remove needless res_init() call. | ume | 2005-04-14 | 1 | -9/+0 |
| | | | | Inspired by: NetBSD | ||||
* | unbreak build without YP defined. | ume | 2005-04-09 | 1 | -0/+4 |
| | | | | Submitted by: Andrea Campi <andrea+freebsd_cvs_at_webcom.it> | ||||
* | Remove unused variables and assignments. | stefanf | 2005-04-08 | 3 | -8/+3 |
| | |||||
* | - we are no longer shareing any resources to be locked between | ume | 2005-04-06 | 2 | -27/+12 |
| | | | | | | getaddrinfo(3) and getipnodeby*(3). - use definitions in reentrant.h. - remove obsolete comment. | ||||
* | separate gai_strerror(3) from getaddrinfo.c. | ume | 2005-04-06 | 3 | -28/+62 |
| | | | | Requested by: phantom | ||||
* | make yp stuff re-entrant. | ume | 2005-04-05 | 1 | -26/+15 |
| | | | | Obtained from: NetBSD | ||||
* | add missing mutex unlock. | ume | 2005-04-05 | 1 | -0/+1 |
| | |||||
* | make _files_getaddrinfo() re-entrant. | ume | 2005-04-04 | 1 | -22/+19 |
| | | | | Obtained from: NetBSD |