mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
resolv: Deprecate RES_BLAST
This commit is contained in:
parent
b76e065991
commit
bbe989ee87
@ -1,3 +1,10 @@
|
|||||||
|
2016-12-31 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* resolv/resolv.h (RES_BLAST): Deprecate.
|
||||||
|
* resolv/res_debug.c (p_option): Remove RES_BLAST.
|
||||||
|
* resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
|
||||||
|
to RES_BLAST.
|
||||||
|
|
||||||
2016-12-27 Florian Weimer <fweimer@redhat.com>
|
2016-12-27 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
[BZ #19582]
|
[BZ #19582]
|
||||||
|
6
NEWS
6
NEWS
@ -144,9 +144,9 @@ Version 2.25
|
|||||||
backwards-incompatible DNS extension which was never deployed on the
|
backwards-incompatible DNS extension which was never deployed on the
|
||||||
Internet.
|
Internet.
|
||||||
|
|
||||||
* The flags RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME, RES_KEEPTSIG defined
|
* The flags RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME, RES_KEEPTSIG,
|
||||||
in the <resolv.h> header file have been deprecated. They were already
|
RES_BLAST defined in the <resolv.h> header file have been deprecated.
|
||||||
unimplemented.
|
They were already unimplemented.
|
||||||
|
|
||||||
* The "inet6" option in /etc/resolv.conf and the RES_USE_INET6 flag for
|
* The "inet6" option in /etc/resolv.conf and the RES_USE_INET6 flag for
|
||||||
_res.flags are deprecated. The flag was standardized in RFC 2133, but
|
_res.flags are deprecated. The flag was standardized in RFC 2133, but
|
||||||
|
@ -558,7 +558,6 @@ p_option(u_long option) {
|
|||||||
case RES_NOALIASES: return "noaliases";
|
case RES_NOALIASES: return "noaliases";
|
||||||
case DEPRECATED_RES_USE_INET6: return "inet6";
|
case DEPRECATED_RES_USE_INET6: return "inet6";
|
||||||
case RES_ROTATE: return "rotate";
|
case RES_ROTATE: return "rotate";
|
||||||
case RES_BLAST: return "blast";
|
|
||||||
case RES_USE_EDNS0: return "edns0";
|
case RES_USE_EDNS0: return "edns0";
|
||||||
case RES_SNGLKUP: return "single-request";
|
case RES_SNGLKUP: return "single-request";
|
||||||
case RES_SNGLKUPREOP: return "single-request-reopen";
|
case RES_SNGLKUPREOP: return "single-request-reopen";
|
||||||
|
@ -424,8 +424,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
|
|||||||
* Some resolvers want to even out the load on their nameservers.
|
* Some resolvers want to even out the load on their nameservers.
|
||||||
* Note that RES_BLAST overrides RES_ROTATE.
|
* Note that RES_BLAST overrides RES_ROTATE.
|
||||||
*/
|
*/
|
||||||
if (__builtin_expect ((statp->options & RES_ROTATE) != 0, 0) &&
|
if (__builtin_expect ((statp->options & RES_ROTATE) != 0, 0)) {
|
||||||
(statp->options & RES_BLAST) == 0) {
|
|
||||||
struct sockaddr_in ina;
|
struct sockaddr_in ina;
|
||||||
struct sockaddr_in6 *inp;
|
struct sockaddr_in6 *inp;
|
||||||
int lastns = statp->nscount - 1;
|
int lastns = statp->nscount - 1;
|
||||||
|
@ -197,7 +197,8 @@ struct res_sym {
|
|||||||
__glibc_macro_warning ("RES_NOCHECKNAME is deprecated") 0x00008000
|
__glibc_macro_warning ("RES_NOCHECKNAME is deprecated") 0x00008000
|
||||||
#define RES_KEEPTSIG \
|
#define RES_KEEPTSIG \
|
||||||
__glibc_macro_warning ("RES_KEEPTSIG is deprecated") 0x00010000
|
__glibc_macro_warning ("RES_KEEPTSIG is deprecated") 0x00010000
|
||||||
#define RES_BLAST 0x00020000 /* blast all recursive servers */
|
#define RES_BLAST \
|
||||||
|
__glibc_macro_warning ("RES_BLAST is deprecated") 0x00020000
|
||||||
#define RES_USE_EDNS0 0x00100000 /* Use EDNS0. */
|
#define RES_USE_EDNS0 0x00100000 /* Use EDNS0. */
|
||||||
#define RES_SNGLKUP 0x00200000 /* one outstanding request at a time */
|
#define RES_SNGLKUP 0x00200000 /* one outstanding request at a time */
|
||||||
#define RES_SNGLKUPREOP 0x00400000 /* -"-, but open new socket for each
|
#define RES_SNGLKUPREOP 0x00400000 /* -"-, but open new socket for each
|
||||||
|
Loading…
Reference in New Issue
Block a user