Ruslan Ermilov
49e5b98f5a
Fix inet6_opt_get_val() prototype.
2005-11-23 16:07:54 +00:00
Ruslan Ermilov
c48648d2c1
Add missing includes.
2005-11-23 10:49:07 +00:00
Hajimu UMEMOTO
4a58c5f5a3
The KAME's getipnodebyaddr() code honor the MULTI_PTRS_ARE_ALIASES
...
define also, but res_config.h was not included into libc/net/name6.c.
So getipnodebyaddr() ignored the multiple PTRs.
PR: kern/88241
Submitted by: Dan Lukes <dan__at__obluda.cz>
MFC after: 3 days
2005-11-15 03:40:15 +00:00
Stefan Farfeleder
d8f77b4529
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included
...
through <pthread.h>.
gen/sem.c: Prerequisite for <_semaphore.h>
net/getprotoent.c: USHRT_MAX
net/getservent.c: USHRT_MAX
stdio/ungetwc.c: MB_LEN_MAX
stdio/vfwscanf.c: MB_LEN_MAX
2005-08-20 07:59:13 +00:00
Poul-Henning Kamp
3d86554c20
Respect the YES_HESIOD build variable.
2005-08-06 16:53:55 +00:00
Giorgos Keramidas
6fb9b618f5
Fix all the spelling mistakes I could find in the man pages for words
...
that have at least 3 characters.
MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.
2005-07-31 03:30:48 +00:00
Hajimu UMEMOTO
5495564735
don't accept invalid form of an address like 1:2:3:4:5:6:7::8.
...
PR: bin/84106
Obtained from: BIND9
MFC after: 2 days
2005-07-27 14:33:36 +00:00
Hajimu UMEMOTO
85a71a15c8
Remove padding for ABI compatibility of ai_addrlen member
...
from struct addrinfo. This change break ABI compatibility
on 64 bit arch.
2005-07-22 18:21:28 +00:00
Hajimu UMEMOTO
d84e21303c
refer RFC 3542 rather than RFC 2292bis.
...
Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Obtained from: KAME
2005-07-19 18:13:58 +00:00
Hajimu UMEMOTO
d5cbe1abb0
fixed the validation code of routing header length in inet6_rth_getaddr().
...
reported by Delia Kecskemeti <delia.kecskemeti__at__windriver.com>
Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Obtained from: KAME
2005-07-19 18:09:44 +00:00
Ruslan Ermilov
48856b0042
Markup fixes.
...
Approved by: re
2005-06-16 19:01:07 +00:00
Ruslan Ermilov
f789cb8293
Assorted markup fixes.
...
Approved by: re
2005-06-15 19:04:04 +00:00
Jacques Vidrine
a8e0b2e8ab
Remove rexecd(8), a server that implements a particularly insecure
...
method of executing commands remotely. There are no rexec clients in
the FreeBSD tree, and the client function rexec(3) is present only in
libcompat. It has been documented as "obsolete" since 4.3BSD, and its
use has been discouraged in the man page for over 10 years.
2005-06-10 20:52:36 +00:00
Hajimu UMEMOTO
360a23ab31
reflect type change of n_net and getnetbyaddr(3).
2005-06-03 04:44:54 +00:00
Hajimu UMEMOTO
ad0fab44e2
- Remove padding for ABI compatibility of n_net member from struct
...
netent.
- Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit
arch as well to confirm to POSIX-2001.
These changes break ABI compatibility on 64 bit arch.
There is similar padding issue for ai_addrlen of struct addrinfo.
However, it is leaved as is for now.
Discussed on: arch@, standards@ and current@
X-MFC after: never
2005-06-03 03:32:06 +00:00
Hajimu UMEMOTO
d6fd3ed8ab
reduce cast.
...
MFC after: 1 week
2005-05-27 20:44:57 +00:00
Hajimu UMEMOTO
036ae3dd79
- The ai_addrlen of a struct addrinfo used to be a size_t, per
...
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
2005-05-15 20:15:15 +00:00
George V. Neville-Neil
fd57e549e0
Submitted by: Jinmei Tatuya, Hajimu Umemoto
...
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.
2005-05-14 19:43:10 +00:00
Hajimu UMEMOTO
946e41f142
raise readability bit.
2005-05-13 17:56:53 +00:00
Hajimu UMEMOTO
f8997ca2f4
free ypbuf only when yp_match() succeed.
2005-05-13 17:30:03 +00:00
Hajimu UMEMOTO
4f10131848
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
...
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
Hajimu UMEMOTO
1ccfa322aa
fix signed/unsigned comparison warnings.
...
Obtained from: NetBSD
2005-05-03 16:13:31 +00:00
Hajimu UMEMOTO
943db5a2ab
the 3rd argument of getsockname() should be socklen_t*.
...
Submitted by: stefanf
2005-05-02 04:43:32 +00:00
Hajimu UMEMOTO
f468e837a1
oops, we don't need previous change.
2005-05-01 12:37:12 +00:00
Hajimu UMEMOTO
6bd1d1a192
make it compilable without YP definition.
2005-05-01 12:08:57 +00:00
Hajimu UMEMOTO
8592d23a9f
don't see RES_USE_INET6 when called from getipnodeby*().
2005-05-01 07:39:45 +00:00
Hajimu UMEMOTO
e84892eb74
oops, gethostbyaddr(3) must return h_addr as an IPv4-mapped
...
IPv6 address when RES_USE_INET6 was set, according to RFC 2133
section 6.2.
2005-04-30 20:07:01 +00:00
Hajimu UMEMOTO
6964622dd0
handling RES_USE_INET6 better.
2005-04-30 19:28:31 +00:00
Hajimu UMEMOTO
e4f846efec
_ht_gethostbyaddr didn't handle RES_USE_INET6 correctly.
2005-04-30 18:46:27 +00:00
Hajimu UMEMOTO
e692b6186a
_gethostbynisname() didn't support RES_USE_INET6.
2005-04-30 18:37:35 +00:00
Hajimu UMEMOTO
40ca152d15
_ht_gethostbyname didn't handle RES_USE_INET6 correctly.
2005-04-30 17:01:18 +00:00
Hajimu UMEMOTO
2c08ac2b38
- do validation check and IPv4-mapped IPv6 address handling before
...
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
2005-04-29 19:55:23 +00:00
Hajimu UMEMOTO
86726f325b
NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno.
2005-04-29 17:36:54 +00:00
Hajimu UMEMOTO
49e0283df8
our get{addr,name}info() is considered thread-safe.
2005-04-29 14:37:51 +00:00
Hajimu UMEMOTO
0d389e7212
we cannot use inet_ntoa(3), here. so, use inet_ntop(3), instead.
2005-04-29 12:01:36 +00:00
Hajimu UMEMOTO
850bc9af6b
sync _map_v4v6_host*() with bind9's. it treats align better bit.
...
Obtained from: BIND9
2005-04-28 18:52:40 +00:00
Hajimu UMEMOTO
b8ab0f4506
we don't need mutex lock to call _gethostbynis*(), anymore.
2005-04-28 18:21:11 +00:00
Hajimu UMEMOTO
aa2f4ec72a
make gethostby*() thread-safe.
2005-04-28 18:03:43 +00:00
Hajimu UMEMOTO
7b671d902b
_gethostbynis{addr,name}() can handle an IPv6, now.
2005-04-28 17:44:44 +00:00
Hajimu UMEMOTO
a2a775011c
make getnetby*() thread-safe.
2005-04-28 15:32:55 +00:00
Hajimu UMEMOTO
bcb131aa3c
hide implementation specific internal functions from netdb.h.
...
it is needed to make get{host,net}by*() thread-safe.
2005-04-27 19:12:57 +00:00
Hajimu UMEMOTO
b190ee6140
our get{proto,serv}by*() use a thread-specific data space.
2005-04-26 18:04:09 +00:00
Hajimu UMEMOTO
72572cc6ea
add IPv6 awareness for NIS query of gethostby*().
...
Inspired by: NetBSD
2005-04-26 14:55:47 +00:00
Hajimu UMEMOTO
a72b0131c9
ensure parsing numeric address before any host query.
...
Inspired by: NetBSD
2005-04-25 17:36:28 +00:00
Hajimu UMEMOTO
4801b1f131
remove unused variable.
2005-04-25 14:52:13 +00:00
Hajimu UMEMOTO
71d0cbb671
if last line didn't have trailing space, network address was also
...
treated as an alias.
2005-04-24 18:22:39 +00:00
Hajimu UMEMOTO
92b6f7be5a
- add getproto{byname,bynumber,ent}_r for internal use within libc.
...
- make getproto{byname,bynumber,ent} thread-safe.
2005-04-19 14:41:13 +00:00
Hajimu UMEMOTO
d7d66e8c85
- nuke deprecated and unused getnodeby(3).
...
- remove unused variable.
Obtained from: KAME
2005-04-19 12:28:17 +00:00
Hajimu UMEMOTO
a87b3988c9
rename the NIS related fields to have yp_ prefix.
...
Suggested by: delphij
2005-04-18 18:34:58 +00:00
Xin LI
ffe49790ef
Do not check whether a pointer is NULL, since free(3) already takes care of
...
this case.
Reviewed by: ume
2005-04-18 03:45:23 +00:00