Joseph Myers
3f2e46a494
Remove --disable-versioning.
2013-09-04 15:25:42 +00:00
Ondřej Bílka
382466e04e
Fix typos.
2013-08-30 18:08:59 +02:00
Ondřej Bílka
6f65e66895
Fix typos.
2013-08-29 09:11:45 +02:00
Roland McGrath
fb431262c1
Clean up _res declaration to use __thread unconditionally.
2013-08-27 11:04:46 -07:00
Roland McGrath
c4e42566cf
Don't try to use ioctl unless [FIONREAD].
2013-08-27 10:50:06 -07:00
Roland McGrath
f890a59b10
Mild decrufting in resolv code.
2013-08-27 10:49:36 -07:00
Ondřej Bílka
c0c3f78afb
Fix typos.
2013-08-21 19:48:48 +02:00
Joseph Myers
60d2f8f3c7
Use (void) in no-arguments function definitions.
2013-06-08 00:22:23 +00:00
Joseph Myers
2e09a79ada
Avoid use of "register" as optimization hint.
2013-06-07 22:24:35 +00:00
Ondrej Bilka
350635a59a
Fix leading whitespaces.
2013-06-06 20:36:07 +02:00
Joseph Myers
9c84384cc1
Remove trailing whitespace.
2013-06-05 20:44:03 +00:00
Joseph Myers
fab7ce3f5b
Link extra-libs consistently with libc and ld.so.
2013-05-31 16:16:33 +00:00
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Andreas Jaeger
c3ed8088e4
BZ#15084: Apparent typos in strings in res_debug.c
...
[BZ #15084 ]
* resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
and RES_USEVC.
2013-04-29 21:17:30 +02:00
Andreas Jaeger
f1a24198af
BZ#15085: Fix comments/strings for RES_NOCHECKNAME
...
[BZ #15085 ]
* resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
* resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
unimplemented.
2013-04-29 21:11:13 +02:00
Andreas Jaeger
b1a36ceb3b
BZ#15086: Fix res_debug printing of options
...
[BZ# 15086]
* resolv/res_debug.c (p_option): Handle RES_NOALIASES,
RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
RES_SNGLKUPREOP.
2013-04-29 21:00:57 +02:00
Andreas Jaeger
f238fd190b
Sort Versions files
2013-02-17 16:34:04 +01:00
Roland McGrath
f1d70dad53
Remove lots of inline keywords.
2013-02-07 14:44:18 -08:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b
Add script to update copyright notices and reformat some to facilitate its use.
2013-01-01 16:29:10 +00:00
Aurelien Jarno
cc8bb21c8a
Fix assertion failures in resolver (BZ #13013 ).
...
[BZ #13013 ]
* resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
depending n and resplen2 to catch cases where answer
equals answerp2.
2012-11-30 15:04:27 -05:00
Thomas Schwinge
123be9deda
Add recvmmsg and sendmmsg to the generic glibc API.
2012-11-20 19:26:04 +01:00
Siddhesh Poyarekar
cfde9b463d
Return EAI_SYSTEM if we're out of file descriptors
...
Resolves BZ #14719 .
2012-11-19 13:02:48 +05:30
Joseph Myers
8ca8931812
Define IPPORT_RESERVED in netdb.h for XPG4 and UNIX98 (bug 14838).
2012-11-13 18:11:49 +00:00
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
Joseph Myers
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
Jeroen van Bemmel
7b6e99be77
Avoid duplicate DNS requests if answer is longer than a implementation
...
limit
[BZ #14307 ]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
the temporary buffer used to invoke __gethostbyname2_r,
__gethostbyaddr_r and gethostbyname4_r to make room for struct
host_data / struct gaih_addrtuple.
* resolv/nss_dns/dns-host.c (global scope): Move definition of
implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
header file nss/nsswitch.h.
* nss/nsswitch.h (global scope): Add definition of implementation
constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
resolv/nss_dns/dns-host.c).
2012-07-12 11:31:48 +05:30
Siddhesh Poyarekar
6cd0a5eaf0
Merge copyright years in resolv/nss_dns/dns-host.c
2012-03-31 10:01:43 +05:30
Siddhesh Poyarekar
48c41d04ee
Consider TTL of CNAME record and return minimum TTL in the chain
...
[BZ #13928 ] A DNS request consists of multiple resources combined into
a single hostent, including multiple CNAME records that may have been
assigned different TTL values. In such a case, nscd should take the
least TTL among all of the resources as the timeout for the hostent
before it is reloaded in its cache so that the hostent remains stale
in the database for the least amount of time.
2012-03-30 21:30:01 +05:30
Jeff Law
2f5a5ed02c
* resolv/nss_dns/dns-host.c: Update copyright year.
2012-03-30 09:54:21 -06:00
Ulrich Drepper
966977f1b7
Better error handling for sendmmsg use in res_send
2012-03-30 08:38:58 -04:00
Ulrich Drepper
8e6d108343
Correct check for DNS request send success
...
This predates the sendmmsg use. The two requests can use different
request sizes but the check for successful transfer always only used
buflen.
2012-03-30 08:27:11 -04:00
Ulrich Drepper
c030f70c87
Speed up DNS by avoiding a system call if possible
2012-03-30 07:42:29 -04:00
Jeff Law
86ae07a8c9
[BZ #13760 ]
...
* resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
in the right place. Discard and retry query if response is
larger than input buffer size.
2012-03-28 10:09:29 -06:00
Paul Pluzhnikov
3ff4252677
2012-03-23 Daniel Jacobowitz <dmj@google.com>
...
Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #6528 ]
* grp/Makefile (otherlibs): Don't set it.
* inet/Makefile (otherlibs): Likewise.
* login/Makefile (otherlibs): Likewise.
* nscd/Makefile (otherlibs): Likewise.
* posix/Makefile (otherlibs): Likewise.
* pwd/Makefile (otherlibs): Likewise.
* rt/Makefile (otherlibs): Likewise.
* sunrpc/Makefile (otherlibs): Likewise.
* nss/Makefile (otherlibs): Likewise.
Add libnss_files to routines and static-only-routines.
($(objpfx)getent): Remove rule.
* resolv/Makefile: Add libnss_dns and libresolv to routines and
static-only-routines.
2012-03-23 09:47:03 -07:00
Thomas Schwinge
82d86f2844
Fix struct timespec normalization (as used in many other places).
2012-03-08 11:49:43 +01:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Jeff Law
8fdceb2efd
[network] Avoid out ouf bounds read in __libc_res_nquerydomain
...
2012-02-28 Jeff Law <law@redhat.com>
* resolv/res_query.c (__libc_res_nquerydomain): Avoid
out of bounds read.
2012-02-29 11:51:27 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
0269750ca6
Remove non-ELF support
2012-01-07 20:30:26 -05:00
Ross Lagerwall
ad8ac1bd6a
Open /etc/resolv.conf with FD_CLOEXEC
2011-12-17 14:43:40 -05:00
Ulrich Drepper
312be3f9f5
Clean up internal fopen uses
...
No need to ever not use c and e.
2011-11-15 04:24:42 -05:00
Ulrich Drepper
9694fc4479
Avoid unused warning in getaddrinfo_a
2011-11-12 02:30:01 -05:00
Joseph Myers
e057a1b593
Link libresolv.so with ld.so for __stack_chk_guard.
2011-09-21 13:27:50 -07:00
Ulrich Drepper
d063d16433
Remove support for !USE___THREAD
2011-09-10 16:50:28 -04:00
Ulrich Drepper
3ce1f29594
Cleanup of configuration options
...
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
Ulrich Drepper
44f0a71e58
Add rules to build libresolv with SSP flags
2011-08-17 21:36:23 -04:00
Andreas Schwab
9be9bfcc9d
Properly tokenize nameserver line for servers with IPv6 address
2011-08-04 15:50:48 -04:00
Andreas Schwab
28b59fca7a
Use size_t for strlen results
2011-07-20 11:40:37 -04:00
Andreas Jaeger
c75fa153a9
Fix warnings in resolver code
2011-07-06 22:29:45 -04:00
Ulrich Drepper
57912a71cc
Fix typo in recent resolver change which causes segvs
2011-06-15 22:43:58 -04:00
Roland McGrath
5615eaf264
Quash some new warnings from GCC 4.6.
2011-06-10 22:44:20 -07:00
Ulrich Drepper
4769ae77fc
Handle DNS server failures in case of AF_UNSPEC lookups correctly
2011-05-30 22:48:47 -04:00
Ulrich Drepper
652ffab113
Make resolv.conf parsing more compact
2011-05-29 22:07:49 -04:00
Ulrich Drepper
16985fd0c7
Recognize use-vc option in resolv.conf
2011-05-29 21:43:33 -04:00
Ulrich Drepper
f87dfb1f11
Backport BIND code to query name as TLD.
2011-05-07 13:05:19 -04:00
Andreas Schwab
597df64714
Install rpc/netdb.h again
2011-05-06 07:46:42 -04:00
Andreas Schwab
4e34d5f589
Don't use removed rpc headers
2011-05-05 07:36:40 -04:00
Bruno Haible
e4ecafe004
Fix getnameinfo flags parameter type.
2011-05-01 21:36:43 -04:00
Andreas Schwab
a769081960
Don't ignore zero TTL in DNS answers
2010-11-25 20:50:16 -05:00
Ulrich Drepper
e66e7419a6
Actually make it possible to user the default name server.
2010-09-14 00:01:42 -07:00
Ulrich Drepper
df24a73ecd
Missing server address again leads to localhost being used
2010-08-25 07:43:53 -07:00
Ulrich Drepper
ea42a20cae
Fix crash on reloading of gai data in nscd.
2010-04-09 21:38:20 -07:00
Ulrich Drepper
4535680d03
Handle DNS timeouts in old-style lookkup code.
2010-04-05 12:21:20 -07:00
Ulrich Drepper
2cd9670885
Declare iruserok and iruserok_af.
2010-04-04 22:01:52 -07:00
Andreas Schwab
94308fd0e0
Fix debug statements in resolver
2010-03-17 06:57:38 -07:00
Yann Droneaud
a092b645f8
Fix DEBUG statements in resolv/res_send.c
2010-03-05 16:52:31 -08:00
Ulrich Drepper
ace4e23f8c
Always use IPv4 sockets for IPv4 addresses.
2010-01-14 22:34:28 -08:00
Ulrich Drepper
52e2ea9a83
Relax visibility of some more declaration.
2010-01-14 13:22:06 -08:00
Ulrich Drepper
63ee841069
Relax condition for resolver constant definition.
2010-01-14 10:05:36 -08:00
Ulrich Drepper
505cf2c00a
Fix up netdb.h for XPG7.
2010-01-12 16:43:00 -08:00
Andreas Schwab
51e4196f16
Handle running out of buffer space with IPv6 mapping enabled.
...
With big DNS answers like the one you get for goodtimesdot.com you can
get a truncated address list if IPv6 mapping is enabled. Instead tell
the caller to resize the buffer.
2009-11-10 07:36:50 -08:00
Ulrich Drepper
75ded9bcdf
Initialize local variable in resolver.
...
When the DNS server doesn't reply at all we possibly tested
an unitialized variable.
2009-10-29 23:01:58 -07:00
Petar Bogdanovic
3a85895fa3
Fix mixing IPv4 and IPv6 name server in resolv.conf.
2009-10-29 08:17:48 -07:00
Adam Tkac
2d0671cbbd
Define and implement RES_USE_DNSSEC option in resolver.
2009-07-27 07:33:48 -07:00
Ulrich Drepper
e28b969b49
Handle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.
...
When doing IPv4+6 lookups we have to pass up the error record from
send_dg.
2009-07-26 12:16:24 -07:00
Ulrich Drepper
1c0ab5bd34
Handle overly large answer buffers in resolver.
...
In EDNS0 records the maximum result size is transmitted in a 16
bit value. Large buffer sizes were handled incorrectly by using
only the low 16 bits. Fix this by limiting the size to 0xffff.
2009-07-16 23:37:50 -07:00
Ulrich Drepper
44d20bca52
Implement second fallback mode for DNS requests.
...
There is some more shardware/software out there which has problems
if two DNS requests are sent using the same tuple
(source addr, source port, dest addr, dest port)
This can range from firewalls to load balancers. Some of the vendors
already fixed it in response to this problem. Still, we need a way
to make glibc work with broken environments. The single-request-reopen
flag can be used or we fall back automatically to this mode.
2009-06-26 03:47:47 -07:00
Ulrich Drepper
310647e980
Remember we switched to single-request mode.
...
This change prevents repetition in most later calls of the resolver
in case the DNS server or the network connection is broken.
2009-06-11 10:07:33 -07:00
Andreas Schwab
ff6ff38db2
Remove redundant .gitignore files.
2009-05-16 10:18:34 +02:00
Jim Meyering
2e180a2622
rename each .cvsignore file to .gitignore
2009-05-15 18:13:37 +02:00
Ulrich Drepper
cf4f16cc88
[BZ #10128 ]
...
2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
[BZ #10128 ]
* resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
or FORMERR and the other NOERROR, don't raise an error.
2009-05-09 16:12:41 +00:00
Ulrich Drepper
74b3cf224e
(send_dg): Don't just ignore the result we got in case we only receive one reply in single-request mode.
2009-04-16 20:29:33 +00:00
Ulrich Drepper
d0e81f10e5
* resolv/res_send.c (send_dg): Don't switch into single-request
...
mode if we already are in it.
2009-04-16 14:29:34 +00:00
Ulrich Drepper
4c8b8cc332
* malloc/malloc.c (_int_realloc): Add parameter with old block
...
size. Remove duplicated test. Don't handle mmap'ed blocks here.
Adjust all callers.
* malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2009-04-08 18:00:34 +00:00
Ulrich Drepper
c6807d38a1
* resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp
...
instead of __strcasecmp.
* resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2009-04-07 16:13:15 +00:00
Ulrich Drepper
ae06191038
* resolv/resolv.h (RES_SNGLKUP): Define.
...
* resolv/res_init.c (res_setoptions): Recognize single-request option.
* resolv/res_send.c (send_dg): If we sent two requests at once and
only get one reply before timeout switch to mode where we send the
second request only after the first answer has been received.
2009-04-07 02:00:27 +00:00
Jakub Jelinek
d82a27f841
* stdlib/monetary.h: Uglify function parameter names.
...
* sunrpc/rpc/pmap_clnt.h: Likewise.
* sunrpc/rpc/svc.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
* sunrpc/rpc/clnt.h: Likewise.
* resolv/netdb.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/resolv.h: Likewise.
* argp/argp.h: Likewise.
* locale/langinfo.h: Likewise.
* io/sys/stat.h: Likewise.
* posix/spawn.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* malloc/obstack.h: Likewise.
* sysdeps/ia64/bits/link.h: Likewise.
* sysdeps/i386/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/x86_64/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-16 Jakub Jelinek <jakub@redhat.com>
* stdlib/monetary.h: Uglify function parameter names.
* sunrpc/rpc/pmap_clnt.h: Likewise.
* sunrpc/rpc/svc.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
* sunrpc/rpc/clnt.h: Likewise.
* resolv/netdb.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/resolv.h: Likewise.
* argp/argp.h: Likewise.
* locale/langinfo.h: Likewise.
* io/sys/stat.h: Likewise.
* posix/spawn.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* malloc/obstack.h: Likewise.
* sysdeps/ia64/bits/link.h: Likewise.
* sysdeps/i386/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/x86_64/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-16 21:00:15 +00:00
Ulrich Drepper
1a9dd4e4e4
[BZ #9781 ]
...
* grp/compat-initgroups.c (compat_call): Switch to use malloc when
the input line is too long.
2009-02-07 04:40:57 +00:00
Ulrich Drepper
df9293cb16
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
...
adjust the buffer alignment.
2009-01-08 00:03:29 +00:00
Ulrich Drepper
16b7dc27a9
* resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2008-12-29 19:53:48 +00:00
Ulrich Drepper
200da00a7c
* resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
...
use.
* sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
handling.
2008-12-08 04:08:51 +00:00
Ulrich Drepper
905ef0daeb
* resolv/res_init.c (__res_vinit): Always assign to statp->nscount
...
after reading name server list.
2008-12-08 03:59:18 +00:00
Ulrich Drepper
da5ac1352d
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
...
ESRCH return value.
(_nss_dns_gethostbyname4_r): Likewise.
* resolv/res_init.c (__res_vinit): Initialize nscount to zero.
* sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
gethostbyname4_r, we don't have a separate IPv6 status, so copy
the no_data variable.
2008-12-03 07:30:39 +00:00
Ulrich Drepper
6f5c31171f
* resolv/res_init.c (__res_vinit): Fill in IPv4 name server
...
information at the correct index.
2008-12-03 05:20:19 +00:00
Ulrich Drepper
9744268c10
* resolv/res_send.c (send_dg): Create sockets with non-blocking
...
flag already set.
2008-12-02 06:21:18 +00:00
Ulrich Drepper
9ba2747432
(gaih_getanswer_slice): Don't abort for unknown request types for now.
2008-11-12 07:52:20 +00:00
Ulrich Drepper
ad12e63582
[BZ #6942 ]
...
2008-10-07 Andreas Schwab <schwab@suse.de>
[BZ #6942 ]
* resolv/res_send.c (send_vc): Fix last change.
(send_dg): Align here as well.
2008-10-31 17:37:28 +00:00
Ulrich Drepper
332c4465b0
* grp/initgroups.c (internal_getgrouplist): Don't prematurely
...
abort if there is no initgroups_dyn function.
2008-10-30 16:55:44 +00:00