Yaroslav Tykhiy
11eb328ec5
Respect MK_INET6_SUPPORT.
2006-07-26 08:36:46 +00:00
Yaroslav Tykhiy
720fc1c7dc
Fix build w/o INET6.
...
Submitted by: Andre Albsmeier <Andre.Albsmeier siemens com>
2006-07-26 08:35:46 +00:00
Hajimu UMEMOTO
e24e9d9988
do not overload the port number on to the return value of
...
str2number(). this could result in an unexpected code path.
Obtained from: KAME
MFC after: 1 week
2006-07-23 15:31:03 +00:00
Hajimu UMEMOTO
18d2f53d00
stop use of mutex lock in ICMP lookup.
...
MFC after: 1 week
2006-07-23 07:07:49 +00:00
Hajimu UMEMOTO
816dc28540
remove obsolete comments.
...
MFC after: 3 days
2006-07-22 14:36:56 +00:00
Hajimu UMEMOTO
da83bf18e4
simplification in explore_numeric: unified the post-process with
...
GET_AI and GET_PORT. Commented on an impossible case.
Obtained from: KAME
MFC after: 1 week
2006-07-21 19:02:28 +00:00
Hajimu UMEMOTO
0cf41987df
RFC3493 requires use of inet_aton for AF_INET.
...
Obtained from: KAME
MFC after: 1 week
2006-07-21 19:00:22 +00:00
Hajimu UMEMOTO
0aceddcef7
clean-up: rewrote explore_null and explore_numeric without using sentinel.
...
we do not need it since we make (at most) a single addrinfo entry in these
cases.
Obtained from: KAME
MFC after: 1 week
2006-07-21 18:57:44 +00:00
Hajimu UMEMOTO
b88ad6b5d6
- draft-ietf-ipngwg-icmp-namelookups-09
...
- make it compilable
It still requires root privilege and is experimental.
Obtained from: KAME
MFC after: 1 week
2006-07-21 18:55:51 +00:00
Stefan Farfeleder
33ef612ede
Use a prototype for res_init().
...
MFC after: 3 days
2006-07-17 09:27:26 +00:00
Hajimu UMEMOTO
1bdf356bd3
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit
...
arch.
X-MFC after: never
2006-05-21 11:27:28 +00:00
Hajimu UMEMOTO
734aa10414
Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is
...
too short. This conforms to RFC3493, POSIX and XPG6.
Obtained from: NetBSD
2006-05-21 11:22:31 +00:00
Hajimu UMEMOTO
d808369aa1
Upgrade res_update(3) and the friends to BIND9's one excluding TSIG
...
support.
X-MFC after: never
2006-05-21 11:19:36 +00:00
Hajimu UMEMOTO
3da59cd007
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:
...
http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html
gethostbyaddr_r() is changed as well.
It breaks ABI backward compatibility on 64 bit arch. So, we fix it
on 32 bit arch only for now.
Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
2006-05-12 15:37:23 +00:00
Hajimu UMEMOTO
b947683ce1
Fix alignment problem on AMD64.
...
Reported by: Pascal Hofstee <caelian__at__gmail.com>
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Tested by: Pascal Hofstee <caelian__at__gmail.com>
2006-05-02 23:02:32 +00:00
Hajimu UMEMOTO
eb59e992e1
cache' couldn't co-exist with
compat'.
...
Submitted by: "Michael Bushkov" <bushman__at__rsu.ru>
2006-04-30 21:25:00 +00:00
Hajimu UMEMOTO
06a99fe36f
- Extend the nsswitch to support Services, Protocols and Rpc
...
databases.
- Make nsswitch support caching.
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Sponsored by: Google Summer of Code 2005
2006-04-28 12:03:38 +00:00
Hajimu UMEMOTO
d3ac2b30d4
- make reentrant version of netdb functions glibc style API, and
...
expose them to outside of libc.
- make netdb functions NSS friendly.
Reviewed by: arch@ and current@ (no objection)
2006-04-15 16:20:27 +00:00
Hajimu UMEMOTO
3c3c80e4c8
fix indent.
2006-04-01 15:53:39 +00:00
Hajimu UMEMOTO
eb27a220f8
Expose res_update and friends again. At least, ports/mail/spamilter
...
uses them.
Now, we have res_nupdate and res_nmkupdate as well, but they are
still based on our old resolver for binary backward compatibility.
So, they don't provide new features such as TSIG support.
Reported by: pointyhat via kris
2006-03-30 20:15:53 +00:00
Hajimu UMEMOTO
1259a17acd
If the query choked with EDNS0, retry without EDNS0.
...
Obtained from: res_nquery() of BIND9.
2006-03-28 07:42:57 +00:00
Hajimu UMEMOTO
90d1d883e9
- Use ANSI C prototype.
...
- Remove trailing space.
2006-03-25 11:46:37 +00:00
Hajimu UMEMOTO
aebc6ec293
When res_nquerydomain() returns SERVFAIL, we should try next domain.
2006-03-24 13:30:10 +00:00
Hajimu UMEMOTO
d05ad2ab4d
When res_send() fails, we should reserve an error code.
2006-03-24 04:49:30 +00:00
Hajimu UMEMOTO
5342d17f09
Update the resolver in libc to BIND9's one.
...
Since, res_sendsigned(3) and the friends use MD5 functions, it is
hard to include them without having MD5 functions in libc. So,
res_sendsigned(3) is not merged into libc.
Since, res_update(3) in BIND9 is not binary compatible with our
res_update(3), res_update(3) is leaved as is, except some
necessary modifications.
The res_update(3) and the friends are not essential part of the
resolver. They are not defined in resolv.h but defined in
res_update.h separately in BIND9. Further, they are not called from
our tree. So, I hide them from our resolv.h, but leave them only
for binary backward compatibility (perhaps, no one calls them).
Since, struct __res_state_ext is not exposed in BIND9, I hide it
from our resolv.h. And, global variable _res_ext is removed. It
breaks binary backward compatibility. But, since it is not used from
outside of our libc, I think it is safe.
Reviewed by: arch@ (no objection)
2006-03-21 16:11:11 +00:00
Xin LI
f1fa5b4f51
When we are doing initialization against q, use its own size, not
...
the size of q2. This should be a no-op because q and q2 are of
the same type.
Submitted by: Alexey Dobriyan <adobriyan gmail com>
2006-03-21 12:39:29 +00:00
Ruslan Ermilov
e1fe3dba5c
Reimplementation of world/kernel build options. For details, see:
...
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Daniel Eischen
ed323e898c
ns_name_skip was recently redefined to __ns_name_skip
...
like the others in <include/arpa/nameser.h>.
Submitted by: ume
2006-03-13 04:49:40 +00:00
Daniel Eischen
6fad3aaf15
Add each directory's symbol map file to SYM_MAPS.
2006-03-13 01:15:01 +00:00
Daniel Eischen
cce72e8860
Add symbol maps and initial symbol version definitions to libc.
...
Reviewed by: davidxu
2006-03-13 00:53:21 +00:00
Hajimu UMEMOTO
3a0b3b6739
Handle the errors returned by res_querydomain() in same manner.
...
Reported by: yar
Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com>
MFC after: 1 week
2006-03-01 15:53:49 +00:00
Daniel Eischen
fc9ae54dca
Correct a comment.
...
Staticize two tables thare are not visible in <resolv.h>
and which are also local in Solaris' libresolv.
Remove two functions that are not referenced in libc nor
anywhere else I can find, not visible in <resolv.h> and
which are also local in Solaris libresolv.
2006-02-27 22:08:16 +00:00
Hajimu UMEMOTO
12d96fe63f
Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includes
...
an IPv6 support.
PR: kern/93740
Submitted by: Rudolf Cejka <cejkar__at__fit.vutbr.cz>
Obtained from: BIND9
MFC after: 1 week
2006-02-26 05:44:21 +00:00
Hajimu UMEMOTO
5ecccefb4a
- Just query 'as is', if there is a trailing dot in the name.
...
- Don't query 'as is' twice.
PR: bin/62139
Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com>
Tested by: Rostislav Krasny <rosti.bsd__at__gmail.com>
Obtained from: BIND9 (with some modification)
MFC after: 1 week
2006-02-24 16:53:42 +00:00
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